From: Leyi Rong Date: Tue, 12 Nov 2019 02:42:06 +0000 (+0800) Subject: net/iavf: fix Tx checksum offload in AVX path X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d7a6eab090c6c912eb7a658827ada803cae7fd51;p=dpdk.git net/iavf: fix Tx checksum offload in AVX path Fix iavf vf_checksum_sw case fail in X710/XXV710, set bit2 to 1 of CMD field in Tx descriptor of AVX Tx path according to Spec. Fixes: af0c246a3800 ("net/iavf: enable AVX2 for iavf") Signed-off-by: Leyi Rong Acked-by: Qi Zhang --- diff --git a/drivers/net/iavf/iavf_rxtx_vec_avx2.c b/drivers/net/iavf/iavf_rxtx_vec_avx2.c index f0c00be56d..a5133d8d8e 100644 --- a/drivers/net/iavf/iavf_rxtx_vec_avx2.c +++ b/drivers/net/iavf/iavf_rxtx_vec_avx2.c @@ -785,8 +785,9 @@ iavf_xmit_fixed_burst_vec_avx2(void *tx_queue, struct rte_mbuf **tx_pkts, volatile struct iavf_tx_desc *txdp; struct iavf_tx_entry *txep; uint16_t n, nb_commit, tx_id; - uint64_t flags = IAVF_TX_DESC_CMD_EOP; - uint64_t rs = IAVF_TX_DESC_CMD_RS | IAVF_TX_DESC_CMD_EOP; + /* bit2 is reserved and must be set to 1 according to Spec */ + uint64_t flags = IAVF_TX_DESC_CMD_EOP | IAVF_TX_DESC_CMD_ICRC; + uint64_t rs = IAVF_TX_DESC_CMD_RS | flags; /* cross rx_thresh boundary is not allowed */ nb_pkts = RTE_MIN(nb_pkts, txq->rs_thresh);