summaryrefslogtreecommitdiff
path: root/include/net/net_namespace.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-02-02 13:11:06 +0300
committerDavid S. Miller <davem@davemloft.net>2024-02-04 19:08:21 +0300
commitffabe98cb576097b77d404d39e8b3df03caa986a (patch)
treee9d296f71893ebfe40868b94239523ee25150138 /include/net/net_namespace.h
parent45a96c407eb1cd44aa0179db8d600015616bcced (diff)
downloadlinux-ffabe98cb576097b77d404d39e8b3df03caa986a.tar.xz
net: make dev_unreg_count global
We can use a global dev_unreg_count counter instead of a per netns one. As a bonus we can factorize the changes done on it for bulk device removals. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/net_namespace.h')
-rw-r--r--include/net/net_namespace.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h
index 13b3a4e29fdb..cd0c2eedbb5e 100644
--- a/include/net/net_namespace.h
+++ b/include/net/net_namespace.h
@@ -67,8 +67,6 @@ struct net {
*/
spinlock_t rules_mod_lock;
- atomic_t dev_unreg_count;
-
unsigned int dev_base_seq; /* protected by rtnl_mutex */
u32 ifindex;