diff options
author | 2023-03-02 10:58:28 +0100 | |
---|---|---|
committer | 2023-03-03 08:28:44 +0000 | |
commit | 3e04419cbe2d0bc10ffc20c006c6513ffa4b1ca3 (patch) | |
tree | 4c7f009ae404c292de52bd2b93bc6d1e465b3b96 /net/lapb/lapb_timer.c | |
parent | ice: copy last block omitted in ice_get_module_eeprom() (diff) | |
download | linux-rng-3e04419cbe2d0bc10ffc20c006c6513ffa4b1ca3.tar.xz linux-rng-3e04419cbe2d0bc10ffc20c006c6513ffa4b1ca3.zip |
nfp: fix incorrectly set csum flag for nfd3 path
The csum flag of IPsec packet are set repeatedly. Therefore, the csum
flag set of IPsec and non-IPsec packet need to be distinguished.
As the ipv6 header does not have a csum field, so l3-csum flag is not
required to be set for ipv6 case.
L4-csum flag include the tcp csum flag and udp csum flag, we shouldn't
set the udp and tcp csum flag at the same time for one packet, should
set l4-csum flag according to the transport layer is tcp or udp.
Fixes: 57f273adbcd4 ("nfp: add framework to support ipsec offloading")
Signed-off-by: Huanhuan Wang <huanhuan.wang@corigine.com>
Reviewed-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions