diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-10-27 07:04:19 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-28 02:22:06 -0700 |
commit | 9b5e383c11b08784eb0087617f880077982ef769 (patch) | |
tree | 090e01601641c39bfb160aa6772336e363628503 /include | |
parent | 44a0873d52282f24b1894c58c0f157e0f626ddc9 (diff) | |
download | op-kernel-dev-9b5e383c11b08784eb0087617f880077982ef769.zip op-kernel-dev-9b5e383c11b08784eb0087617f880077982ef769.tar.gz |
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')
-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 0ded0a4..e7c227d 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -1119,6 +1119,7 @@ extern int dev_queue_xmit(struct sk_buff *skb); extern int register_netdevice(struct net_device *dev); extern void unregister_netdevice_queue(struct net_device *dev, struct list_head *head); +extern void unregister_netdevice_many(struct list_head *head); static inline void unregister_netdevice(struct net_device *dev) { unregister_netdevice_queue(dev, NULL); |