net: Simplify loopback and improve batching.
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 29 Nov 2009 22:25:29 +0000 (22:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Dec 2009 00:15:52 +0000 (16:15 -0800)
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>
drivers/net/loopback.c

index c9f65574378f7eb56bccc6ccd8a9cbb31e69b097..eae4ad749e9d87956facbfadd53036d5d882ce03 100644 (file)
@@ -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,
 };