From: Eric W. Biederman Date: Wed, 2 Dec 2009 13:19:08 +0000 (+0000) Subject: net: Teach vlans to cleanup as a pernet subsystem X-Git-Tag: v2.6.33-rc1~388^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91e2ff3528ac90b9dbcb04b76488e8ad74e3d3d9;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed