]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit83a66f65b189a580fe1a9997f5c324a27a9ec14e
tree33b346ebaab318dab8beb1f433453ceae65bced1
parentf5ef7493aaa94f0dfa0da1a4fde85fe59ae4f727
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