Skip to content

Commit b49663c

Browse files
Alexander Duyckdavem330
authored andcommitted
net/mlx5e: Add support for UDP tunnel segmentation with outer checksum offload
This patch assumes that the mlx5 hardware will ignore existing IPv4/v6 header fields for length and checksum as well as the length and checksum fields for outer UDP headers. Signed-off-by: Alexander Duyck <aduyck@mirantis.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 0906712 commit b49663c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • drivers/net/ethernet/mellanox/mlx5/core

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2802,13 +2802,18 @@ static void mlx5e_build_netdev(struct net_device *netdev)
28022802
netdev->hw_features |= NETIF_F_HW_VLAN_CTAG_FILTER;
28032803

28042804
if (mlx5e_vxlan_allowed(mdev)) {
2805-
netdev->hw_features |= NETIF_F_GSO_UDP_TUNNEL;
2805+
netdev->hw_features |= NETIF_F_GSO_UDP_TUNNEL |
2806+
NETIF_F_GSO_UDP_TUNNEL_CSUM |
2807+
NETIF_F_GSO_PARTIAL;
28062808
netdev->hw_enc_features |= NETIF_F_IP_CSUM;
28072809
netdev->hw_enc_features |= NETIF_F_RXCSUM;
28082810
netdev->hw_enc_features |= NETIF_F_TSO;
28092811
netdev->hw_enc_features |= NETIF_F_TSO6;
28102812
netdev->hw_enc_features |= NETIF_F_RXHASH;
28112813
netdev->hw_enc_features |= NETIF_F_GSO_UDP_TUNNEL;
2814+
netdev->hw_enc_features |= NETIF_F_GSO_UDP_TUNNEL_CSUM |
2815+
NETIF_F_GSO_PARTIAL;
2816+
netdev->gso_partial_features = NETIF_F_GSO_UDP_TUNNEL_CSUM;
28122817
}
28132818

28142819
mlx5_query_port_fcs(mdev, &fcs_supported, &fcs_enabled);

0 commit comments

Comments
 (0)