udp: move udp_memory_allocated into net_aligned_data
authorEric Dumazet <edumazet@google.com>
Mon, 30 Jun 2025 09:35:40 +0000 (09:35 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 2 Jul 2025 21:22:02 +0000 (14:22 -0700)
commite3d4825124bce0d1f72187fabcf972b7c0b6cb9b
tree7d57f406a870c95a827b3934c61a4d159d6d495a
parent83081337419cb692eca4ee475d936b1fdcfd49f6
udp: move udp_memory_allocated into net_aligned_data

____cacheline_aligned_in_smp attribute only makes sure to align
a field to a cache line. It does not prevent the linker to use
the remaining of the cache line for other variables, causing
potential false sharing.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20250630093540.3052835-5-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/aligned_data.h
include/net/udp.h
net/ipv4/udp.c
net/ipv4/udp_impl.h
net/ipv4/udplite.c
net/ipv6/udp.c
net/ipv6/udp_impl.h
net/ipv6/udplite.c