Commit d5a5cb7d authored by Eric Dumazet's avatar Eric Dumazet Committed by Liu Jian
Browse files

net: cache align tcp_memory_allocated, tcp_sockets_allocated

mainline inclusion
from mainline-v5.17-rc1
commit 91b6d325
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I65HYE

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=91b6d325635617540b6a1646ddb138bb17cbd569



---------------------------

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: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
(cherry picked from commit 91b6d325)
Signed-off-by: default avatarLiu Jian <liujian56@huawei.com>

Conflicts:
	net/mptcp/protocol.c
parent 42d7d2ee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment