diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-09-09 01:20:18 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-09 01:20:18 +0200 |
commit | 712d6954e3998d0de2840d8130941e8042541246 (patch) | |
tree | abf7158ab301e9b70568eca0ad24f740105e935c /net/bridge/br_if.c | |
parent | netns bridge: allow bridges in netns! (diff) | |
download | linux-712d6954e3998d0de2840d8130941e8042541246.tar.xz linux-712d6954e3998d0de2840d8130941e8042541246.zip |
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.c | 4 |
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) return 0; } -void __exit br_cleanup_bridges(void) +void br_net_exit(struct net *net) { struct net_device *dev; rtnl_lock(); restart: - for_each_netdev(&init_net, dev) { + for_each_netdev(net, dev) { if (dev->priv_flags & IFF_EBRIDGE) { del_br(dev->priv); goto restart; |