Skip to contentSkip to conversation

net/iavf: fix l4 checksum error

PATCH Applied Wenzhuo Lu 2 participants 2 messages Apr 27, 2021 Network drivers

lore
Share & tools
lore

Wenzhuo Lu

author
#0 lore raw

PATCH 1/1 net/iavf: fix l4 checksum error

leverage the behavior of the scalar path, preparing packets is necessary for the checksum offload.

Fixes 059f18ae2aec ("net/iavf: add offload path for Tx AVX512")
---
 drivers/net/iavf/iavf_rxtx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/iavf/iavf_rxtx.c +2 -1
index 0ba19dbf..87f7eeb 100644
@@ -2585,6 +2585,7 @@
 					    iavf_xmit_pkts_vec_avx2 :
 					    iavf_xmit_pkts_vec;
 		}
+		dev->tx_pkt_prepare = NULL;
 #ifdef CC_AVX512_SUPPORT
 		if (use_avx512) {
 			if (check_ret == IAVF_VECTOR_PATH) {
@@ -2593,12 +2594,12 @@
 					    dev->data->port_id);
 			} else {
 				dev->tx_pkt_burst = iavf_xmit_pkts_vec_avx512_offload;
+				dev->tx_pkt_prepare = iavf_prep_pkts;
 				PMD_DRV_LOG(DEBUG, "Using AVX512 OFFLOAD Vector Tx (port %d).",
 					    dev->data->port_id);
 			}
 		}
 #endif
-		dev->tx_pkt_prepare = NULL;
 
 		for (i = 0; i < dev->data->nb_tx_queues; i++) {
 			txq = dev->data->tx_queues[i];
Signature · 1 line
1.9.3
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 9 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of Wenzhuo Lu
Sent: 2021年4月27日 10:24
To: [email protected]
Cc: Lu, Wenzhuo <[email protected]>
Subject: [dpdk-dev] [PATCH] net/iavf: fix l4 checksum error

Quoted 6 lines

leverage the behavior of the scalar path, preparing packets is necessary for the checksum offload.

Fixes 059f18ae2aec ("net/iavf: add offload path for Tx AVX512")

Applied to dpdk-next-net-intel.

Thanks
Qi