app/testpmd: fix check without outer checksum
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Mon, 16 Aug 2021 07:09:41 +0000 (12:39 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 25 Aug 2021 12:29:30 +0000 (14:29 +0200)
commit4219d7670e8535e7d4b43233866a587b015e3f43
tree921472a41ad4852555981308e11fa25b4e01c7d9
parented0ebb6e171125d99cf2be2f9c7e1378208df5c0
app/testpmd: fix check without outer checksum

Donot use outer metadata when neither outer ip checksum nor
outer udp checksum is enabled. PMD's will ignore the
outer_l2_len and outer_l3_len in cases where none of
the outer checksum is enabled and hence only l2_len and
l3_len will be used to calculate the offsets for L2 or L3
header.

Fixes: 3c32113a1aac ("app/testpmd: fix IPv6 tunnel checksum")
Cc: stable@dpdk.org
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Acked-by: Xiaoyun Li <xiaoyun.li@intel.com>
app/test-pmd/csumonly.c