]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "net/mlx5e: Block offload of outer header csum for UDP tunnels"
authorAya Levin <ayal@nvidia.com>
Sun, 24 Oct 2021 08:47:41 +0000 (11:47 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 7 Jan 2022 00:55:40 +0000 (16:55 -0800)
commit97b0bba93f8716fc20f9903fd48ce44c94d33fc5
tree1ea1ef494e8f260419e74db8c9b2882c669c8ac0
parent73a8e8248a6574d1917c6964c9eca6c533418134
Revert "net/mlx5e: Block offload of outer header csum for UDP tunnels"

This reverts commit 00be83c09781501a88f7901ea4488dc046ad5111.

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_UDP_TUNNEL_CSUM must be a member of the device's
features.

Fixes: 00be83c09781 ("net/mlx5e: Block offload of outer header csum for UDP tunnels")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c