|
|
d8f823 |
From d03ac6626a42264e3b6a0cea3ec19e8c7a83f326 Mon Sep 17 00:00:00 2001
|
|
|
d8f823 |
From: Davide Caratti <dcaratti@redhat.com>
|
|
|
d8f823 |
Date: Tue, 28 Jan 2020 09:13:33 -0500
|
|
|
d8f823 |
Subject: [PATCH 001/312] [netdrv] mlx5e: allow TSO on VXLAN over VLAN
|
|
|
d8f823 |
topologies
|
|
|
d8f823 |
|
|
|
d8f823 |
Message-id: <92832a2adaee9760b05b903f7b15c4b107dab620.1580148241.git.dcaratti@redhat.com>
|
|
|
d8f823 |
Patchwork-id: 294141
|
|
|
d8f823 |
Patchwork-instance: patchwork
|
|
|
d8f823 |
O-Subject: [RHEL8.3 netdrv] net/mlx5e: allow TSO on VXLAN over VLAN topologies
|
|
|
d8f823 |
Bugzilla: 1780643
|
|
|
d8f823 |
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: John Linville <linville@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Paolo Abeni <pabeni@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: David S. Miller <davem@redhat.com>
|
|
|
d8f823 |
|
|
|
d8f823 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1780643
|
|
|
d8f823 |
Upstream Status: net-next.git commit a1718505d7f6
|
|
|
d8f823 |
Brew: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=26037831
|
|
|
d8f823 |
Tested: using a variant of the script used to verify bz1626213
|
|
|
d8f823 |
Conflicts: none
|
|
|
d8f823 |
|
|
|
d8f823 |
commit a1718505d7f67ee0ab051322f1cbc7ac42b5da82
|
|
|
d8f823 |
Author: Davide Caratti <dcaratti@redhat.com>
|
|
|
d8f823 |
Date: Thu Jan 9 12:07:59 2020 +0100
|
|
|
d8f823 |
|
|
|
d8f823 |
net/mlx5e: allow TSO on VXLAN over VLAN topologies
|
|
|
d8f823 |
|
|
|
d8f823 |
since mlx5 hardware can segment correctly TSO packets on VXLAN over VLAN
|
|
|
d8f823 |
topologies, CPU usage can improve significantly if we enable tunnel
|
|
|
d8f823 |
offloads in dev->vlan_features, like it was done in the past with other
|
|
|
d8f823 |
NIC drivers (e.g. mlx4, be2net and ixgbe).
|
|
|
d8f823 |
|
|
|
d8f823 |
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
|
|
|
d8f823 |
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
|
|
|
d8f823 |
|
|
|
d8f823 |
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
|
|
|
d8f823 |
Signed-off-by: Frantisek Hrbata <fhrbata@redhat.com>
|
|
|
d8f823 |
---
|
|
|
d8f823 |
drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 2 ++
|
|
|
d8f823 |
1 file changed, 2 insertions(+)
|
|
|
d8f823 |
|
|
|
d8f823 |
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
|
|
|
d8f823 |
index 00ef0cd3ca13..7447b84e2d44 100644
|
|
|
d8f823 |
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
|
|
|
d8f823 |
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
|
|
|
d8f823 |
@@ -4855,6 +4855,8 @@ static void mlx5e_build_nic_netdev(struct net_device *netdev)
|
|
|
d8f823 |
netdev->hw_enc_features |= NETIF_F_GSO_UDP_TUNNEL |
|
|
|
d8f823 |
NETIF_F_GSO_UDP_TUNNEL_CSUM;
|
|
|
d8f823 |
netdev->gso_partial_features = NETIF_F_GSO_UDP_TUNNEL_CSUM;
|
|
|
d8f823 |
+ netdev->vlan_features |= NETIF_F_GSO_UDP_TUNNEL |
|
|
|
d8f823 |
+ NETIF_F_GSO_UDP_TUNNEL_CSUM;
|
|
|
d8f823 |
}
|
|
|
d8f823 |
|
|
|
d8f823 |
if (MLX5_CAP_ETH(mdev, tunnel_stateless_gre)) {
|
|
|
d8f823 |
--
|
|
|
d8f823 |
2.13.6
|
|
|
d8f823 |
|