]> git.ipfire.org Git - thirdparty/linux.git/commit
udp: make busylock per socket
authorEric Dumazet <edumazet@google.com>
Tue, 16 Sep 2025 16:09:50 +0000 (16:09 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 18 Sep 2025 08:17:10 +0000 (10:17 +0200)
commit3cd04c8f4afed71a48edef0db5255afc249c2feb
tree2554308232765f8599feabb359b9de7cc0e1f9f6
parent9db27c80622bd612549ea213390500f7377ee3e1
udp: make busylock per socket

While having all spinlocks packed into an array was a space saver,
this also caused NUMA imbalance and hash collisions.

UDPv6 socket size becomes 1600 after this patch.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250916160951.541279-10-edumazet@google.com
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/linux/udp.h
include/net/udp.h
net/ipv4/udp.c