]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit91b6d325635617540b6a1646ddb138bb17cbd569
treef4bb42d5c9f0ae67c51618aaf2364feb014516d9
parent6c302e799a0d4be1362f505453b714fe05d91f2a
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