aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2009-10-27 03:04:19 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-28 05:22:06 -0400
commit9b5e383c11b08784eb0087617f880077982ef769 (patch)
tree090e01601641c39bfb160aa6772336e363628503 /include/linux/netdevice.h
parent44a0873d52282f24b1894c58c0f157e0f626ddc9 (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.h1
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);
1119extern int register_netdevice(struct net_device *dev); 1119extern int register_netdevice(struct net_device *dev);
1120extern void unregister_netdevice_queue(struct net_device *dev, 1120extern void unregister_netdevice_queue(struct net_device *dev,
1121 struct list_head *head); 1121 struct list_head *head);
1122extern void unregister_netdevice_many(struct list_head *head);
1122static inline void unregister_netdevice(struct net_device *dev) 1123static inline void unregister_netdevice(struct net_device *dev)
1123{ 1124{
1124 unregister_netdevice_queue(dev, NULL); 1125 unregister_netdevice_queue(dev, NULL);