Thread (32 messages) 32 messages, 4 authors, 2026-01-08

Re: [PATCH net-next v6 05/16] quic: provide quic.h header files for kernel and userspace

From: Xin Long <lucien.xin@gmail.com>
Date: 2026-01-08 17:44:52
Also in: linux-cifs

On Thu, Jan 8, 2026 at 10:01 AM Paolo Abeni [off-list ref] wrote:
On 1/5/26 3:04 PM, Xin Long wrote:
quoted
This commit adds quic.h to include/uapi/linux, providing the necessary
definitions for the QUIC socket API. Exporting this header allows both
user space applications and kernel subsystems to access QUIC-related
control messages, socket options, and event/notification interfaces.

Since kernel_get/setsockopt() is no longer available to kernel consumers,
a corresponding internal header, include/linux/quic.h, is added.
Re-adding kernel_get/setsockopt() variants after removal, but just for a
single protocol is a bit ackward. The current series does not have any
user.

Do such helpers save a lot of duplicate code? Otherwise I would instead
expose quic_do_{get,set}sockopt().
Not much, just when using quic_do_{get,set}sockopt(), KERNEL_SOCKPTR()
will be used around the optval and optlen.

It should be fine to change to expose quic_do_{get,set}sockopt().

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help