]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Oct 2020 09:56:00 +0000 (11:56 +0200)
commitaf2c68e241ba6b816f1622f7a071e96e425349fa
tree5b1dc1da550d3dc1568e88c6e952c35828ec95d1
parent13e623dc27722668975bc315e55903bccadb3969
net/mlx5e: Fix driver's declaration to support GRE offload

commit 3d093bc2369003b4ce6c3522d9b383e47c40045d upstream.

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: 2729984149e6 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c