Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9399814 authored by Weilong Chen's avatar Weilong Chen Committed by David S. Miller
Browse files

bonding: Don't allow bond devices to change network namespaces.



Like bridge, bonding as netdevice doesn't cross netns boundaries.

Bonding ports and bonding itself live in same netns.

Signed-off-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a9517d0f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 |