Skip to content

Commit 682adfa

Browse files
gal-pressmanSaeed Mahameed
authored andcommitted
net/mlx5e: Support partial GSO for tunnels over vlans
Offloading outer checksum on tunnels requires GSO partial, add it to 'vlan_features' to allow offloading tunnels over vlans. For example, running GENEVE over vlan & ipv6 (mandatory UDP checksum) now allows for hardware TSO instead of software segmentation in GSO only. Signed-off-by: Gal Pressman <[email protected]> Reviewed-by: Aya Levin <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 675b9d5 commit 682adfa

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4812,6 +4812,7 @@ static void mlx5e_build_nic_netdev(struct net_device *netdev)
48124812
netdev->vlan_features |= NETIF_F_TSO6;
48134813
netdev->vlan_features |= NETIF_F_RXCSUM;
48144814
netdev->vlan_features |= NETIF_F_RXHASH;
4815+
netdev->vlan_features |= NETIF_F_GSO_PARTIAL;
48154816

48164817
netdev->mpls_features |= NETIF_F_SG;
48174818
netdev->mpls_features |= NETIF_F_HW_CSUM;
@@ -4877,7 +4878,6 @@ static void mlx5e_build_nic_netdev(struct net_device *netdev)
48774878
NETIF_F_GSO_IPXIP6;
48784879
}
48794880

4880-
netdev->hw_features |= NETIF_F_GSO_PARTIAL;
48814881
netdev->gso_partial_features |= NETIF_F_GSO_UDP_L4;
48824882
netdev->hw_features |= NETIF_F_GSO_UDP_L4;
48834883
netdev->features |= NETIF_F_GSO_UDP_L4;

0 commit comments

Comments
 (0)