Skip to content
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.

Commit

Permalink
bonding: Don't allow bond devices to change network namespaces.
Browse files Browse the repository at this point in the history
Like bridge, bonding as netdevice doesn't cross netns boundaries.

Bonding ports and bonding itself live in same netns.

Signed-off-by: Weilong Chen <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Weilong Chen authored and davem330 committed Jan 23, 2014
1 parent a9517d0 commit f939981
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3884,6 +3884,9 @@ void bond_setup(struct net_device *bond_dev)
* capable
*/

/* Don't allow bond devices to change network namespaces. */
bond_dev->features |= NETIF_F_NETNS_LOCAL;

bond_dev->hw_features = BOND_VLAN_FEATURES |
NETIF_F_HW_VLAN_CTAG_TX |
NETIF_F_HW_VLAN_CTAG_RX |
Expand Down

0 comments on commit f939981

Please sign in to comment.