]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tcp: move tcp_memory_allocated into net_aligned_data
authorEric Dumazet <edumazet@google.com>
Mon, 30 Jun 2025 09:35:39 +0000 (09:35 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 2 Jul 2025 21:22:02 +0000 (14:22 -0700)
commit83081337419cb692eca4ee475d936b1fdcfd49f6
tree306d7b12294131e5db495b773f9eb5bbddb936cf
parent998642e999d23324c5dbf38149606d09cec2c377
tcp: move tcp_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.

Move tcp_memory_allocated into a dedicated cache line.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20250630093540.3052835-4-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/aligned_data.h
include/net/tcp.h
net/core/hotdata.c
net/ipv4/tcp.c
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c
net/mptcp/protocol.c