From: Wenzhuo Lu Date: Tue, 27 Apr 2021 02:24:28 +0000 (+0800) Subject: net/iavf: fix Tx L4 checksum X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=08eb6a9cc2e136e177de620425a4e39112a2897a;p=dpdk.git net/iavf: fix Tx L4 checksum Leverage the behavior of the scalar path, preparing packets is necessary for vector paths which support checksum offload. Fixes: 059f18ae2aec ("net/iavf: add offload path for Tx AVX512") Signed-off-by: Wenzhuo Lu --- diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index 3f3cf6306c..232516c414 100644 --- a/drivers/net/iavf/iavf_rxtx.c +++ b/drivers/net/iavf/iavf_rxtx.c @@ -2587,6 +2587,7 @@ iavf_set_tx_function(struct rte_eth_dev *dev) 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) { @@ -2595,12 +2596,12 @@ iavf_set_tx_function(struct rte_eth_dev *dev) 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];