Skip to content

Commit 01c3fd1

Browse files
ayalevinSaeed Mahameed
authored andcommitted
Revert "net/mlx5e: Block offload of outer header csum for GRE tunnel"
This reverts commit 54e1217. Although the NIC doesn't support offload of outer header CSUM, using gso_partial_features allows offloading the tunnel's segmentation. The driver relies on the stack CSUM calculation of the outer header. For this, NETIF_F_GSO_GRE_CSUM must be a member of the device's features. Fixes: 54e1217 ("net/mlx5e: Block offload of outer header csum for GRE tunnel") Signed-off-by: Aya Levin <[email protected]> Reviewed-by: Gal Pressman <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 64050cd commit 01c3fd1

File tree

1 file changed

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

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4799,9 +4799,12 @@ static void mlx5e_build_nic_netdev(struct net_device *netdev)
47994799
}
48004800

48014801
if (mlx5e_tunnel_proto_supported_tx(mdev, IPPROTO_GRE)) {
4802-
netdev->hw_features |= NETIF_F_GSO_GRE;
4803-
netdev->hw_enc_features |= NETIF_F_GSO_GRE;
4804-
netdev->gso_partial_features |= NETIF_F_GSO_GRE;
4802+
netdev->hw_features |= NETIF_F_GSO_GRE |
4803+
NETIF_F_GSO_GRE_CSUM;
4804+
netdev->hw_enc_features |= NETIF_F_GSO_GRE |
4805+
NETIF_F_GSO_GRE_CSUM;
4806+
netdev->gso_partial_features |= NETIF_F_GSO_GRE |
4807+
NETIF_F_GSO_GRE_CSUM;
48054808
}
48064809

48074810
if (mlx5e_tunnel_proto_supported_tx(mdev, IPPROTO_IPIP)) {

0 commit comments

Comments
 (0)