net: reorganize fields in netns_mib
authorEric Dumazet <edumazet@google.com>
Fri, 2 Apr 2021 18:07:46 +0000 (11:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Apr 2021 21:31:44 +0000 (14:31 -0700)
commit7f040aa322617acf1978b8de140f1bf9ff916617
tree82d259adf9ef3321854dfa69a639acb2241d58fd
parentca4d4c34ae9aa5c3c0da76662c5e549d2fc0cc86
net: reorganize fields in netns_mib

Order fields to increase locality for most used protocols.

udplite and icmp are moved at the end.

Same for proc_net_devsnmp6 which is not used in fast path.

This potentially saves one cache line miss for typical TCP/UDP over IPv4/IPv6.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/mib.h