summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2026-01-10 23:03:57 +0300
committerJakub Kicinski <kuba@kernel.org>2026-01-10 23:03:57 +0300
commit6c7ff659d883c2753863f90549b2a5d83562fb43 (patch)
tree7fcfb6ef7796fb20816a61a208b2962000589255
parent11ed2195887d419ed889f2140fcf3b5ec7bf1177 (diff)
parentb30ba673058d9657f03ef55a9efa2db544d244b5 (diff)
downloadlinux-6c7ff659d883c2753863f90549b2a5d83562fb43.tar.xz
Merge branch 'mlx5-add-tso-support-for-udp-over-gre-over-vlan'
Mark Bloch says: ==================== mlx5: Add TSO support for UDP over GRE over VLAN The following 3 small patches by Gal add support for TSO for UDP over GRE over VLAN packets. ==================== Link: https://patch.msgid.link/20260107091848.621884-1-mbloch@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
index 07fc4d2c8fad..3ac47df83ac8 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
@@ -5798,8 +5798,8 @@ static void mlx5e_build_nic_netdev(struct net_device *netdev)
NETIF_F_GSO_GRE_CSUM;
netdev->hw_enc_features |= NETIF_F_GSO_GRE |
NETIF_F_GSO_GRE_CSUM;
- netdev->gso_partial_features |= NETIF_F_GSO_GRE |
- NETIF_F_GSO_GRE_CSUM;
+ netdev->gso_partial_features |= NETIF_F_GSO_GRE_CSUM;
+ netdev->vlan_features |= NETIF_F_GSO_GRE | NETIF_F_GSO_GRE_CSUM;
}
if (mlx5e_tunnel_proto_supported_tx(mdev, IPPROTO_IPIP)) {
@@ -5813,6 +5813,7 @@ static void mlx5e_build_nic_netdev(struct net_device *netdev)
netdev->gso_partial_features |= NETIF_F_GSO_UDP_L4;
netdev->hw_features |= NETIF_F_GSO_UDP_L4;
+ netdev->hw_enc_features |= NETIF_F_GSO_UDP_L4;
mlx5_query_port_fcs(mdev, &fcs_supported, &fcs_enabled);