diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-10-27 03:04:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-28 05:22:06 -0400 |
commit | 9b5e383c11b08784eb0087617f880077982ef769 (patch) | |
tree | 090e01601641c39bfb160aa6772336e363628503 /include/linux/netdevice.h | |
parent | 44a0873d52282f24b1894c58c0f157e0f626ddc9 (diff) |
net: Introduce unregister_netdevice_many()
Introduce rollback_registered_many() and unregister_netdevice_many()
rollback_registered_many() is able to perform necessary steps at device dismantle
time, factorizing two expensive synchronize_net() calls.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 0ded0a4768a0..e7c227d7cb98 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -1119,6 +1119,7 @@ extern int dev_queue_xmit(struct sk_buff *skb); | |||
1119 | extern int register_netdevice(struct net_device *dev); | 1119 | extern int register_netdevice(struct net_device *dev); |
1120 | extern void unregister_netdevice_queue(struct net_device *dev, | 1120 | extern void unregister_netdevice_queue(struct net_device *dev, |
1121 | struct list_head *head); | 1121 | struct list_head *head); |
1122 | extern void unregister_netdevice_many(struct list_head *head); | ||
1122 | static inline void unregister_netdevice(struct net_device *dev) | 1123 | static inline void unregister_netdevice(struct net_device *dev) |
1123 | { | 1124 | { |
1124 | unregister_netdevice_queue(dev, NULL); | 1125 | unregister_netdevice_queue(dev, NULL); |