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:Eric Dumazet <edumazet@google.com> Signed-off-by:
David S. Miller <davem@davemloft.net> (cherry picked from commit 91b6d325) Signed-off-by:
Liu Jian <liujian56@huawei.com> Conflicts: net/mptcp/protocol.c
Loading
Please sign in to comment