Revert "net/mlx5e: Block offload of outer header csum for GRE tunnel"
authorAya Levin <ayal@nvidia.com>
Sun, 24 Oct 2021 13:52:23 +0000 (16:52 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:03:57 +0000 (11:03 +0100)
commit46a8a5a42984928914c20d6c8b33d2c8a3cdbd27
treed1321e14289df375fe614ff53a42b94aa4fd0006
parenta8176f18ab5fa6e7a59a23309f4ee5a4b19890a5
Revert "net/mlx5e: Block offload of outer header csum for GRE tunnel"

[ Upstream commit 01c3fd113ef50490ffd43f78f347ef6bb008510b ]

This reverts commit 54e1217b90486c94b26f24dcee1ee5ef5372f832.

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: 54e1217b9048 ("net/mlx5e: Block offload of outer header csum for GRE tunnel")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c