net: Simplfy default_device_exit and improve batching.
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 29 Nov 2009 22:25:30 +0000 (22:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Dec 2009 00:15:52 +0000 (16:15 -0800)
commite008b5fc8dc7f46d9904001c7a2155eb1e7d35ab
tree17a76e3c58211ad8e8e088058701bc913f7ffd1e
parent999b6d39abb4fc446f3465ca4e0a7ac747f49aec
net: Simplfy default_device_exit and improve batching.

- Defer dellink to net_cleanup() allowing for batching.
- Fix comment.
- Use for_each_netdev_safe again as dev_change_net_namespace touches
  at most one network device (unlike veth dellink).

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c