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 <gal@nvidia.com> Reviewed-by: Aya Levin <ayal@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
parent
675b9d51d6
commit
682adfa6ca
@ -4812,6 +4812,7 @@ static void mlx5e_build_nic_netdev(struct net_device *netdev)
|
||||
netdev->vlan_features |= NETIF_F_TSO6;
|
||||
netdev->vlan_features |= NETIF_F_RXCSUM;
|
||||
netdev->vlan_features |= NETIF_F_RXHASH;
|
||||
netdev->vlan_features |= NETIF_F_GSO_PARTIAL;
|
||||
|
||||
netdev->mpls_features |= NETIF_F_SG;
|
||||
netdev->mpls_features |= NETIF_F_HW_CSUM;
|
||||
@ -4877,7 +4878,6 @@ static void mlx5e_build_nic_netdev(struct net_device *netdev)
|
||||
NETIF_F_GSO_IPXIP6;
|
||||
}
|
||||
|
||||
netdev->hw_features |= NETIF_F_GSO_PARTIAL;
|
||||
netdev->gso_partial_features |= NETIF_F_GSO_UDP_L4;
|
||||
netdev->hw_features |= NETIF_F_GSO_UDP_L4;
|
||||
netdev->features |= NETIF_F_GSO_UDP_L4;
|
||||
|
Loading…
x
Reference in New Issue
Block a user