summaryrefslogtreecommitdiff
path: root/include/net/netns
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2021-11-15 20:11:49 +0300
committerDavid S. Miller <davem@davemloft.net>2021-11-16 16:20:45 +0300
commit4199bae10c49e24bc2c5d8c06a68820d56640000 (patch)
treeb2961c173f6371d1e6c6025c8dc8d7cee442dc7f /include/net/netns
parentd477eb9004845cb2dc92ad5eed79a437738a868a (diff)
downloadlinux-4199bae10c49e24bc2c5d8c06a68820d56640000.tar.xz
net: merge net->core.prot_inuse and net->core.sock_inuse
net->core.sock_inuse is a per cpu variable (int), while net->core.prot_inuse is another per cpu variable of 64 integers. per cpu allocator tend to place them in very different places. Grouping them together makes sense, since it makes updates potentially faster, if hitting the same cache line. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netns')
-rw-r--r--include/net/netns/core.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/net/netns/core.h b/include/net/netns/core.h
index 36c2d998a43c..552bc25b1933 100644
--- a/include/net/netns/core.h
+++ b/include/net/netns/core.h
@@ -12,7 +12,6 @@ struct netns_core {
int sysctl_somaxconn;
#ifdef CONFIG_PROC_FS
- int __percpu *sock_inuse;
struct prot_inuse __percpu *prot_inuse;
#endif
};