]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
udp: Don't pass udptable to IPv6 socket lookup functions.
authorKuniyuki Iwashima <kuniyu@google.com>
Wed, 11 Mar 2026 05:20:00 +0000 (05:20 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 14 Mar 2026 01:57:46 +0000 (18:57 -0700)
commitdeffb85478a4076226f0213c7b9f7b7cf5dfe9f8
treee9673aec61f232980316009bdb5efdb124a33cf3
parent5a88b2810f267893e4b34f3044a9e11f952f03d9
udp: Don't pass udptable to IPv6 socket lookup functions.

Since UDP and UDP-Lite had dedicated socket hash tables for
each, we have had to pass the pointer down to many socket
lookup functions.

UDP-Lite gone, and we do not need to do that.

Let's fetch net->ipv4.udp_table only where needed in IPv6
stack: __udp6_lib_lookup() and __udp6_lib_mcast_deliver().

__udp6_lib_err() is renamed to udpv6_err() as its wrapper
is no longer needed.

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20260311052020.1213705-14-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/ipv6_stubs.h
include/net/udp.h
net/core/filter.c
net/ipv4/udp_diag.c
net/ipv6/udp.c
net/ipv6/udp_offload.c