net/mlx5e: Disallow changing name-space for VF representors
VF reps should be altogether on the same NS as they were created. Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
d7a0ecab38
Коммит
abd3277287
|
@ -308,7 +308,7 @@ static void mlx5e_build_rep_netdev(struct net_device *netdev)
|
|||
netdev->switchdev_ops = &mlx5e_rep_switchdev_ops;
|
||||
#endif
|
||||
|
||||
netdev->features |= NETIF_F_VLAN_CHALLENGED | NETIF_F_HW_TC;
|
||||
netdev->features |= NETIF_F_VLAN_CHALLENGED | NETIF_F_HW_TC | NETIF_F_NETNS_LOCAL;
|
||||
netdev->hw_features |= NETIF_F_HW_TC;
|
||||
|
||||
eth_hw_addr_random(netdev);
|
||||
|
|
Загрузка…
Ссылка в новой задаче