Commit abd32772 authored by Or Gerlitz's avatar Or Gerlitz Committed by David S. Miller

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: default avatarOr Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d7a0ecab
...@@ -308,7 +308,7 @@ static void mlx5e_build_rep_netdev(struct net_device *netdev) ...@@ -308,7 +308,7 @@ static void mlx5e_build_rep_netdev(struct net_device *netdev)
netdev->switchdev_ops = &mlx5e_rep_switchdev_ops; netdev->switchdev_ops = &mlx5e_rep_switchdev_ops;
#endif #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; netdev->hw_features |= NETIF_F_HW_TC;
eth_hw_addr_random(netdev); eth_hw_addr_random(netdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment