mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
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>
This commit is contained in:
committed by
David S. Miller
parent
45a96c407e
commit
ffabe98cb5
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user