[PATCH 05/20] net: Simplify loopback and improve batching.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric W. Biederman
Date: Monday, November 30, 2009 - 1:25 am

From: Eric W. Biederman <ebiederm@xmission.com>

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>
---
 drivers/net/loopback.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c
index c9f6557..eae4ad7 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,
 };
-- 
1.6.5.2.143.g8cc62

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/20] Batch network namespace cleanup, Eric W. Biederman, (Sun Nov 29, 6:46 pm)
Re: [PATCH 0/20] Batch network namespace cleanup, Eric Dumazet, (Mon Nov 30, 1:07 am)
Re: [PATCH 0/20] Batch network namespace cleanup, David Miller, (Mon Nov 30, 1:09 am)
Re: [PATCH 0/20] Batch network namespace cleanup, Eric W. Biederman, (Mon Nov 30, 1:17 am)
[PATCH 02/20] net: Implement for_each_netdev_reverse., Eric W. Biederman, (Mon Nov 30, 1:25 am)
[PATCH 03/20] net: Batch network namespace destruction., Eric W. Biederman, (Mon Nov 30, 1:25 am)
[PATCH 04/20] net: Automatically allocate per namespace data., Eric W. Biederman, (Mon Nov 30, 1:25 am)
[PATCH 05/20] net: Simplify loopback and improve batching., Eric W. Biederman, (Mon Nov 30, 1:25 am)
[PATCH 06/20] net: Simplfy default_device_exit and improve ..., Eric W. Biederman, (Mon Nov 30, 1:25 am)
Re: [PATCH 0/20] Batch network namespace cleanup, Eric W. Biederman, (Mon Nov 30, 1:48 am)
Re: [PATCH 0/20] Batch network namespace cleanup, Eric W. Biederman, (Mon Nov 30, 12:22 pm)
Re: [PATCH 0/20] Batch network namespace cleanup, David Miller, (Mon Nov 30, 5:34 pm)
Re: [PATCH 0/20] Batch network namespace cleanup, Eric W. Biederman, (Mon Nov 30, 5:55 pm)