All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/mlx5e: Allow removing representors netdev to other namespace
@ 2019-05-18  0:54 xiangxia.m.yue
  2019-05-20 20:24 ` Or Gerlitz
  0 siblings, 1 reply; 8+ messages in thread
From: xiangxia.m.yue @ 2019-05-18  0:54 UTC (permalink / raw)
  To: roid, saeedm; +Cc: netdev, Tonghao Zhang

From: Tonghao Zhang <xiangxia.m.yue@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.yue@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


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-08-04 10:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-18  0:54 [PATCH] net/mlx5e: Allow removing representors netdev to other namespace xiangxia.m.yue
2019-05-20 20:24 ` Or Gerlitz
2019-05-21  4:35   ` Tonghao Zhang
2019-05-21 16:44     ` Or Gerlitz
2019-05-22  1:25       ` Tonghao Zhang
2019-05-22  4:49         ` Or Gerlitz
2019-08-01  0:44           ` Tonghao Zhang
2019-08-04 10:21             ` Or Gerlitz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.