]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix driver's declaration to support GRE offload
authorAya Levin <ayal@mellanox.com>
Sun, 9 Aug 2020 09:34:21 +0000 (12:34 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 2 Oct 2020 17:59:57 +0000 (10:59 -0700)
commit19cf5402d47165986c305b7a87311bb9374e30a1
tree9c351d97732cb372d1880f3bc88a5878f988a73e
parente440231faebdda02817f2850c9339f09c951c838
net/mlx5e: Fix driver's declaration to support GRE offload

Declare GRE offload support with respect to the inner protocol. Add a
list of supported inner protocols on which the driver can offload
checksum and GSO. For other protocols, inform the stack to do the needed
operations. There is no noticeable impact on GRE performance.

Fixes: 64befd7a504b ("net/mlx5e: Support TSO and TX checksum offloads for GRE tunnels")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c