net/mlx5e: TSO for UDP over GRE over vlan packets
authorGal Pressman <gal@nvidia.com>
Wed, 7 Jan 2026 09:18:47 +0000 (11:18 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 10 Jan 2026 20:03:54 +0000 (12:03 -0800)
commit5f410e1224e49c68818475289ed4a943461f00c3
tree8c6e06c72000e6d474193a02eb476dcdddcd662e
parent6e6c751b41a8113f4bd9626ccc95a06e307c7a79
net/mlx5e: TSO for UDP over GRE over vlan packets

The hardware supports segmentation offload of UDP over GRE over vlan
packets, allow it by adding NETIF_F_GSO_UDP_L4 to hw_enc_features which
will make the vlan device inherit it to its own hw_enc_features.

Side note: it is quite confusing that this change wasn't needed to
offload encapsulated UDP packets regardless of vlan, but that's the way
that the stack handles gso partial features, it assumes they're
supported without caring if the feature is supported in hw_enc_features.

Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Link: https://patch.msgid.link/20260107091848.621884-3-mbloch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c