]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: datagram: introduce datagram_poll_queue for custom receive queues
authorRalf Lici <ralf@mandelbit.com>
Tue, 21 Oct 2025 10:09:40 +0000 (12:09 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 23 Oct 2025 13:46:04 +0000 (15:46 +0200)
commitf6ceec6434b5efff62cecbaa2ff74fc29b96c0c6
tree378ba9e62095f5bcf7a4c7c458f84634b58a147a
parent10843e1492e474c02b91314963161731fa92af91
net: datagram: introduce datagram_poll_queue for custom receive queues

Some protocols using TCP encapsulation (e.g., espintcp, openvpn) deliver
userspace-bound packets through a custom skb queue rather than the
standard sk_receive_queue.

Introduce datagram_poll_queue that accepts an explicit receive queue,
and convert datagram_poll into a wrapper around datagram_poll_queue.
This allows protocols with custom skb queues to reuse the core polling
logic without relying on sk_receive_queue.

Cc: Sabrina Dubroca <sd@queasysnail.net>
Cc: Antonio Quartulli <antonio@openvpn.net>
Signed-off-by: Ralf Lici <ralf@mandelbit.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Antonio Quartulli <antonio@openvpn.net>
Link: https://patch.msgid.link/20251021100942.195010-2-ralf@mandelbit.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/linux/skbuff.h
net/core/datagram.c