Skip to contentSkip to conversation

app/testpmd: fix Tx checksum problem when TSO enabled

PATCH Applied Peng Huang 3 participants 3 messages Oct 24, 2019

lore
Share & tools
lore

Peng Huang

author
#0 lore raw

PATCH 1/1 app/testpmd: fix Tx checksum problem when TSO enabled

This patch fixed the TX checksum value problem when enabled TSO in tunnel packets, because outer UDP checksum calculation depend on the TSO configuration.

depend on patch:
app/testpmd: enable GTP header parse and Tx checksum offload

Fixes 0f62d63593ed ("app/testpmd: support tunneled TSO in checksum engine")
---
 app/test-pmd/csumonly.c | 3 +++
 1 file changed, 3 insertions(+)
app/test-pmd/csumonly.c +3 -0
index e1cb7fb..a1775f4 100644
@@ -478,6 +478,9 @@ struct simple_gre_hdr {
 	if (info->outer_l4_proto != IPPROTO_UDP)
 		return ol_flags;
 
+	if (tso_enabled)
+		ol_flags |= PKT_TX_TCP_SEG;
+
 	/* Skip SW outer UDP checksum generation if HW supports it */
 	if (tx_offloads & DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) {
 		ol_flags |= PKT_TX_OUTER_UDP_CKSUM;
Signature · 1 line
1.8.3.1
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of Peng Huang
Sent: Thursday, October 24, 2019 10:38 AM
To: Zhang, Qi Z <[email protected]>
Cc: [email protected]; Ye, Xiaolong <[email protected]>; Xu, Ting <[email protected]>; Huang, Peng <[email protected]>; [email protected]
Subject: [dpdk-dev] [PATCH] app/testpmd: fix Tx checksum problem when TSO enabled

This patch fixed the TX checksum value problem when enabled TSO in tunnel packets, because outer UDP checksum calculation depend on the TSO configuration.

Quoted 7 lines

depend on patch:
app/testpmd: enable GTP header parse and Tx checksum offload

Fixes 0f62d63593ed ("app/testpmd: support tunneled TSO in checksum engine")
Applied
#2 lore raw
Quoted 16 lines · Bernard
Quoted 16 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of Peng Huang
Sent: Thursday, October 24, 2019 10:38 AM
To: Zhang, Qi Z <[email protected]>
Cc: [email protected]; Ye, Xiaolong <[email protected]>; Xu, Ting <[email protected]>; Huang, Peng <[email protected]>; [email protected]
Subject: [dpdk-dev] [PATCH] app/testpmd: fix Tx checksum problem when TSO enabled

This patch fixed the TX checksum value problem when enabled TSO in tunnel packets, because outer UDP checksum calculation depend on the TSO configuration.

depend on patch:
app/testpmd: enable GTP header parse and Tx checksum offload

Quoted 7 lines
Quoted 4 lines
Fixes 0f62d63593ed ("app/testpmd: support tunneled TSO in checksum engine")

Applied to dpdk-next-net/master, thanks.