app/testpmd: fix Tx checksum problem when TSO enabled
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
--- app/test-pmd/csumonly.c | 3 +++ 1 file changed, 3 insertions(+)
app/test-pmd/csumonly.c +3 -0
@@ -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
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 enabledThis 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 offloadFixes 0f62d63593ed ("app/testpmd: support tunneled TSO in checksum engine")Signed-off-by Peng Huang <[email protected]>
Ferruh Yigit
AppliedQuoted 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 enabledThis 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")Signed-off-by Peng Huang <[email protected]>Acked-by Bernard Iremonger <[email protected]
Applied to dpdk-next-net/master, thanks.