netns bridge: allow bridges in netns!
Bridge as netdevice doesn't cross netns boundaries. Bridge ports and bridge itself live in same netns. Notifiers are fixed. netns propagated from userspace socket for setup and teardown. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: Stephen Hemminger <shemming@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
5337407c67
commit
4aa678ba44
@ -35,9 +35,6 @@ static int br_device_event(struct notifier_block *unused, unsigned long event, v
|
||||
struct net_bridge_port *p = dev->br_port;
|
||||
struct net_bridge *br;
|
||||
|
||||
if (!net_eq(dev_net(dev), &init_net))
|
||||
return NOTIFY_DONE;
|
||||
|
||||
/* not a port of a bridge */
|
||||
if (p == NULL)
|
||||
return NOTIFY_DONE;
|
||||
|
Reference in New Issue
Block a user