]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nfp: fix esp-tx-csum-offload doesn't take effect
authorHuanhuan Wang <huanhuan.wang@corigine.com>
Thu, 2 Mar 2023 09:58:30 +0000 (10:58 +0100)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:33:08 +0000 (13:33 +0200)
commit746828e8a390d67c3d7ff27fcbbb204737d47e9b
tree9c4af660deb1c247978ed0f744269a0292ff5883
parentc195713d356817dc160548624cb1033182b6a2b2
nfp: fix esp-tx-csum-offload doesn't take effect

BugLink: https://bugs.launchpad.net/bugs/2016875
[ Upstream commit 1cf78d4c4144ffdbc2c9d505db482cb204bb480b ]

When esp-tx-csum-offload is set to on, the protocol stack shouldn't
calculate the IPsec offload packet's csum, but it does. Because the
callback `.ndo_features_check` incorrectly masked NETIF_F_CSUM_MASK bit.

Fixes: 57f273adbcd4 ("nfp: add framework to support ipsec offloading")
Signed-off-by: Huanhuan Wang <huanhuan.wang@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c