net: make dev_unreg_count global
authorEric Dumazet <edumazet@google.com>
Fri, 2 Feb 2024 10:11:06 +0000 (10:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Feb 2024 16:08:21 +0000 (16:08 +0000)
commitffabe98cb576097b77d404d39e8b3df03caa986a
treee9d296f71893ebfe40868b94239523ee25150138
parent45a96c407eb1cd44aa0179db8d600015616bcced
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>
include/linux/rtnetlink.h
include/net/net_namespace.h
net/core/dev.c
net/core/rtnetlink.c