summaryrefslogtreecommitdiff
path: root/include/linux/rtnetlink.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/linux/rtnetlink.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/linux/rtnetlink.h')
-rw-r--r--include/linux/rtnetlink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h
index 410529fca18b..21780608cf47 100644
--- a/include/linux/rtnetlink.h
+++ b/include/linux/rtnetlink.h
@@ -47,6 +47,7 @@ extern int rtnl_lock_killable(void);
extern bool refcount_dec_and_rtnl_lock(refcount_t *r);
extern wait_queue_head_t netdev_unregistering_wq;
+extern atomic_t dev_unreg_count;
extern struct rw_semaphore pernet_ops_rwsem;
extern struct rw_semaphore net_rwsem;