net/iavf: fix l4 checksum error
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")
Signed-off-by Wenzhuo Lu <[email protected]>
--- drivers/net/iavf/iavf_rxtx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/iavf/iavf_rxtx.c +2 -1
@@ -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
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")Signed-off-by Wenzhuo Lu <[email protected]>
Acked-by Qi Zhang <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi