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

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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);