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

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

team: Don't allow team devices to change network namespaces.



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

Team ports and team 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 f9399814
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2034,6 +2034,10 @@ static void team_setup(struct net_device *dev)

	dev->features |= NETIF_F_LLTX;
	dev->features |= NETIF_F_GRO;

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

	dev->hw_features = TEAM_VLAN_FEATURES |
			   NETIF_F_HW_VLAN_CTAG_TX |
			   NETIF_F_HW_VLAN_CTAG_RX |