aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge/br_if.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-09-08 19:20:18 -0400
committerDavid S. Miller <davem@davemloft.net>2008-09-08 19:20:18 -0400
commit712d6954e3998d0de2840d8130941e8042541246 (patch)
treeabf7158ab301e9b70568eca0ad24f740105e935c /net/bridge/br_if.c
parent4aa678ba44aa35759c04f300afbc97d3dab5faa2 (diff)
netns bridge: cleanup bridges during netns stop
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: Stephen Hemminger <shemming@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_if.c')
-rw-r--r--net/bridge/br_if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c
index 66c4f7122cf4..573e20f7dba4 100644
--- a/net/bridge/br_if.c
+++ b/net/bridge/br_if.c
@@ -446,13 +446,13 @@ int br_del_if(struct net_bridge *br, struct net_device *dev)
446 return 0; 446 return 0;
447} 447}
448 448
449void __exit br_cleanup_bridges(void) 449void br_net_exit(struct net *net)
450{ 450{
451 struct net_device *dev; 451 struct net_device *dev;
452 452
453 rtnl_lock(); 453 rtnl_lock();
454restart: 454restart:
455 for_each_netdev(&init_net, dev) { 455 for_each_netdev(net, dev) {
456 if (dev->priv_flags & IFF_EBRIDGE) { 456 if (dev->priv_flags & IFF_EBRIDGE) {
457 del_br(dev->priv); 457 del_br(dev->priv);
458 goto restart; 458 goto restart;