diff options
author | Eric Dumazet <edumazet@google.com> | 2024-02-02 11:11:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-02-04 17:08:21 +0100 |
commit | ffabe98cb576097b77d404d39e8b3df03caa986a (patch) | |
tree | e9d296f71893ebfe40868b94239523ee25150138 /include/net/net_namespace.h | |
parent | tun: Implement ethtool's get_channels() callback (diff) | |
download | linux-ffabe98cb576097b77d404d39e8b3df03caa986a.tar.xz linux-ffabe98cb576097b77d404d39e8b3df03caa986a.zip |
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.h | 2 |
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; |