diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-29 17:25:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-01 19:15:52 -0500 |
commit | 999b6d39abb4fc446f3465ca4e0a7ac747f49aec (patch) | |
tree | 9b1daca5ff657cd7f3c2f4fd6874e3618a808d87 /drivers/net/loopback.c | |
parent | f875bae065334907796da12523f9df85c89f5712 (diff) |
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 'drivers/net/loopback.c')
-rw-r--r-- | 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 c9f65574378f..eae4ad749e9d 100644 --- a/drivers/net/loopback.c +++ b/drivers/net/loopback.c | |||
@@ -212,15 +212,7 @@ out: | |||
212 | return err; | 212 | return err; |
213 | } | 213 | } |
214 | 214 | ||
215 | static __net_exit void loopback_net_exit(struct net *net) | ||
216 | { | ||
217 | struct net_device *dev = net->loopback_dev; | ||
218 | |||
219 | unregister_netdev(dev); | ||
220 | } | ||
221 | |||
222 | /* Registered in net/core/dev.c */ | 215 | /* Registered in net/core/dev.c */ |
223 | struct pernet_operations __net_initdata loopback_net_ops = { | 216 | struct pernet_operations __net_initdata loopback_net_ops = { |
224 | .init = loopback_net_init, | 217 | .init = loopback_net_init, |
225 | .exit = loopback_net_exit, | ||
226 | }; | 218 | }; |