From: Tonghao Zhang <xiangxia.m....@gmail.com> At most case, we use the ConnectX-5 NIC on compute node for VMs, but we will offload forwarding rules to NICs on gateway node. On the gateway node, we will install multiple NICs and set them to different dockers which contain different net namespace, different routing table. In this way, we can specify the agent process on one docker. More dockers mean more high throughput.
The commit abd3277287c7 ("net/mlx5e: Disallow changing name-space for VF representors") disallow it, but we can change it now for gateway use case. Signed-off-by: Tonghao Zhang <xiangxia.m....@gmail.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c index 91e24f1..15e932f 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c @@ -1409,7 +1409,7 @@ static void mlx5e_build_rep_netdev(struct net_device *netdev) netdev->watchdog_timeo = 15 * HZ; - netdev->features |= NETIF_F_HW_TC | NETIF_F_NETNS_LOCAL; + netdev->features |= NETIF_F_HW_TC; netdev->hw_features |= NETIF_F_HW_TC; netdev->hw_features |= NETIF_F_SG; -- 1.8.3.1