diff options
author | Weilong Chen <chenweilong@huawei.com> | 2014-01-22 22:07:22 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-23 00:57:17 -0500 |
commit | 99301ba11cb72f68f4e43e5778106035bd6965c4 (patch) | |
tree | adc182f2cc00fa8c2619d12c3251788185c9f1d3 /drivers/net/team | |
parent | f9399814927ad9bb995a6e109c2a5f9d8a848209 (diff) |
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>
Diffstat (limited to 'drivers/net/team')
-rw-r--r-- | drivers/net/team/team.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index dff24e3dde4a..28407426fd6f 100644 --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.c | |||
@@ -2034,6 +2034,10 @@ static void team_setup(struct net_device *dev) | |||
2034 | 2034 | ||
2035 | dev->features |= NETIF_F_LLTX; | 2035 | dev->features |= NETIF_F_LLTX; |
2036 | dev->features |= NETIF_F_GRO; | 2036 | dev->features |= NETIF_F_GRO; |
2037 | |||
2038 | /* Don't allow team devices to change network namespaces. */ | ||
2039 | dev->features |= NETIF_F_NETNS_LOCAL; | ||
2040 | |||
2037 | dev->hw_features = TEAM_VLAN_FEATURES | | 2041 | dev->hw_features = TEAM_VLAN_FEATURES | |
2038 | NETIF_F_HW_VLAN_CTAG_TX | | 2042 | NETIF_F_HW_VLAN_CTAG_TX | |
2039 | NETIF_F_HW_VLAN_CTAG_RX | | 2043 | NETIF_F_HW_VLAN_CTAG_RX | |