]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 7 Jan 2022 00:55:40 +0000 (16:55 -0800)
commitcfe2ea82c937a32c2bcbb9e911859c089dff4297
tree298b6da768d4e5a99450d10e82ae351b35bd36b1
parentbe0c2c3f8bc52829231fada79ebd6e5be3af0ec9
Revert "net/mlx5e: Block offload of outer header csum for GRE tunnel"

This reverts commit 74c08a489000f72c143c2bd3b33d3aa756c8549d.

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: 74c08a489000 ("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>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c