]> git.droids-corp.org - dpdk.git/commit
app/testpmd: fix L4 checksum in multi-segments
authorKevin Liu <kevinx.liu@intel.com>
Wed, 29 Dec 2021 09:37:02 +0000 (09:37 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 14 Mar 2022 20:23:26 +0000 (21:23 +0100)
commit7dc92d17298d8fd05a912606f02a094566ec0b3f
tree0005e5477c5868cd4ec973012d237ca5e8767064
parentc1d1b94eec5855b3934791a10125e9db5f15298a
app/testpmd: fix L4 checksum in multi-segments

Testpmd forwards packets in checksum mode that it needs to calculate
the checksum of each layer's protocol.

In process_inner_cksums, when parsing tunnel packets, inner L4 offset
should be outer_l2_len + outer_l3_len + l2_len + l3_len.

In process_outer_cksums, when parsing tunnel packets, outer L4 offset
should be outer_l2_len + outer_l3_len.

Fixes: e6b9d6411e91 ("app/testpmd: add SW L4 checksum in multi-segments")
Cc: stable@dpdk.org
Signed-off-by: Kevin Liu <kevinx.liu@intel.com>
Acked-by: Yuying Zhang <yuying.zhang@intel.com>
Acked-by: Aman Singh <aman.deep.singh@intel.com>
app/test-pmd/csumonly.c