summaryrefslogtreecommitdiffstats
path: root/drivers/net/loopback.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2009-11-29 23:25:29 +0100
committerDavid S. Miller <davem@davemloft.net>2009-12-02 01:15:52 +0100
commit999b6d39abb4fc446f3465ca4e0a7ac747f49aec (patch)
tree9b1daca5ff657cd7f3c2f4fd6874e3618a808d87 /drivers/net/loopback.c
parentnet: Automatically allocate per namespace data. (diff)
downloadlinux-999b6d39abb4fc446f3465ca4e0a7ac747f49aec.tar.xz
linux-999b6d39abb4fc446f3465ca4e0a7ac747f49aec.zip
net: Simplify loopback and improve batching.
Defer calling unregister_netdevice_queue to cleanup_net. It's simpler and it allows the loopback device to land in the same batch as other network devices. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/loopback.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c
index c9f65574378f..eae4ad749e9d 100644
--- a/drivers/net/loopback.c
+++ b/drivers/net/loopback.c
@@ -212,15 +212,7 @@ out:
return err;
}
-static __net_exit void loopback_net_exit(struct net *net)
-{
- struct net_device *dev = net->loopback_dev;
-
- unregister_netdev(dev);
-}
-
/* Registered in net/core/dev.c */
struct pernet_operations __net_initdata loopback_net_ops = {
.init = loopback_net_init,
- .exit = loopback_net_exit,
};