app/testpmd: perform SW IP checksum for GRO/GSO packets
authorWenwu Ma <wenwux.ma@intel.com>
Thu, 12 May 2022 01:07:56 +0000 (01:07 +0000)
committerAndrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Thu, 19 May 2022 08:20:10 +0000 (10:20 +0200)
commit1945c64674b2b9ad55af0ef31f8a02ae0b747400
tree4efec42f5defd092b42ce6a4c95f83792fb610e3
parentf55fe01f88a6802f27df96d78a489306370406a4
app/testpmd: perform SW IP checksum for GRO/GSO packets

The GRO/GSO library doesn't re-calculate checksums for
merged/fragmented packets. If users want the packets to
have correct IP checksums, they should select HW IP
checksum calculation for the port which the packets are
transmitted to. But if the port doesn't support HW IP
checksum, users may perform a SW IP checksum.

Fixes: b7091f1dcfbc ("app/testpmd: enable the heavyweight mode TCP/IPv4 GRO")
Fixes: 52f38a2055ed ("app/testpmd: enable TCP/IPv4 VxLAN and GRE GSO")
Cc: stable@dpdk.org
Signed-off-by: Wenwu Ma <wenwux.ma@intel.com>
Reviewed-by: Jiayu Hu <jiayu.hu@intel.com>
Tested-by: Wei Ling <weix.ling@intel.com>
Acked-by: Yuying Zhang <yuying.zhang@intel.com>
app/test-pmd/csumonly.c