From: Nithin Dabilpuram Date: Mon, 16 Aug 2021 07:09:41 +0000 (+0530) Subject: app/testpmd: fix check without outer checksum X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4219d7670e8535e7d4b43233866a587b015e3f43;p=dpdk.git 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 Acked-by: Xiaoyun Li --- diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index 607c889359..38cc256533 100644 --- a/app/test-pmd/csumonly.c +++ b/app/test-pmd/csumonly.c @@ -961,8 +961,7 @@ tunnel_update: (tx_offloads & DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM) || (tx_offloads & - DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) || - (tx_ol_flags & PKT_TX_OUTER_IPV6)) { + DEV_TX_OFFLOAD_OUTER_UDP_CKSUM)) { m->outer_l2_len = info.outer_l2_len; m->outer_l3_len = info.outer_l3_len; m->l2_len = info.l2_len;