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 <>
Reviewed-by: Wei Wang <>
Reviewed-by: David Ahern <>
Signed-off-by: Coco Li <>
Reviewed-by: Eric Dumazet <>
Reviewed-by: Shakeel Butt <>
Signed-off-by: David S. Miller <>
2 files changed