net: Teach vlans to cleanup as a pernet subsystem
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 2 Dec 2009 13:19:08 +0000 (13:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2009 06:10:24 +0000 (22:10 -0800)
commit91e2ff3528ac90b9dbcb04b76488e8ad74e3d3d9
tree33b346ebaab318dab8beb1f433453ceae65bced1
parent650de8de16aa7c168c34d1b6a3191e4a5e2648c8
net: Teach vlans to cleanup as a pernet subsystem

Take advantage of the fact that an explicit rtnl_kill_links is
unnecessary (and skipping it improves batching), as network namespace
exit calls dellink on all remaining virtual devices, and
rtnl_link_unregister calls dellink on all outstanding devices in that
network namespace.  To do this we need to leave the vlan proc
directories in place until after network device exit time, which is
done by using register_pernet_subsys instead of
register_pernet_device.

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