Thread (21 messages) 21 messages, 7 authors, 2021-08-02

Re: [dpdk-dev] [PATCH v4] app/testpmd: fix TX checksum calculation for tunnel

From: Thomas Monjalon <hidden>
Date: 2021-07-30 12:03:20

30/07/2021 10:39, Olivier Matz:
On Thu, Jul 29, 2021 at 08:01:41PM +0300, Gregory Etelson wrote:
quoted
csumonly engine calculates TX checksum of a tunnelled packet for outer
headers only or separately for outer and inner headers. The
calculation method is determined by checksum configuration options.
If TX checksum calculation is separated, the inner headers are
processed before outer headers.

Inner headers processing sets checksum values to 0 unconditionally.
If TX configuration offloads inner checksums only, outer checksum
calculation in software will read 0 instead of real values and
produce wrong result.

The patch zeroes inner checksums only before software calculation.

Fixes: 6b520d54ebfe ("app/testpmd: use Tx preparation in checksum engine")
Cc: stable@dpdk.org

Signed-off-by: Gregory Etelson <redacted>
Acked-by: Olivier Matz <redacted>
The previous acks were forgotten (it should be added manually in the patch):

Acked-by: Ori Kam <redacted>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Acked-by: Xiaoyun Li <redacted>

Applied, thanks.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help