netns-ipv4: reorganize netns_ipv4 fast path variables
authorCoco Li <lixiaoyan@google.com>
Wed, 29 Nov 2023 07:27:54 +0000 (07:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Dec 2023 22:24:36 +0000 (22:24 +0000)
commit18fd64d2542292713b0322e6815be059bdee440c
treef42aebe19e9c791d92b0bdce2f176ace5601848d
parentaeb9ce058d7c6193dc41e06b3a5b29d22c446b14
netns-ipv4: reorganize netns_ipv4 fast path variables

Reorganize fast path variables on tx-txrx-rx order.
Fastpath cacheline ends after sysctl_tcp_rmem.
There are only read-only variables here. (write is on the control path
and not considered in this case)

Below data generated with pahole on x86 architecture.
Fast path variables span cache lines before change: 4
Fast path variables span cache lines after change: 2

Suggested-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Wei Wang <weiwan@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Coco Li <lixiaoyan@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/ipv4.h
net/core/net_namespace.c