]> git.baikalelectronics.ru Git - kernel.git/commit
net: cache align tcp_memory_allocated, tcp_sockets_allocated
authorEric Dumazet <edumazet@google.com>
Mon, 15 Nov 2021 19:02:39 +0000 (11:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Nov 2021 13:10:34 +0000 (13:10 +0000)
commit8cb660605b76cf840f8c3d6a2298fdd43d0a6f81
treef4bb42d5c9f0ae67c51618aaf2364feb014516d9
parent8c97cd5e9e8594e672ad815d143ecdb5c7538cc0
net: cache align tcp_memory_allocated, tcp_sockets_allocated

tcp_memory_allocated and tcp_sockets_allocated often share
a common cache line, source of false sharing.

Also take care of udp_memory_allocated and mptcp_sockets_allocated.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c
net/ipv4/udp.c
net/mptcp/protocol.c