mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 07:31:29 +00:00
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: Weilong Chen <chenweilong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f939981492
commit
99301ba11c
@ -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 |
|
||||
|
Loading…
Reference in New Issue
Block a user