]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/iavf/iavf_rxtx_vec_avx2.c
net/iavf: fix Tx checksum offload in AVX path
[dpdk.git] / drivers / net / iavf / iavf_rxtx_vec_avx2.c
index f0c00be56dd1b3872809f9bbeacd8ad8db15fd49..a5133d8d8e53edbbd3101c5397f723fb91e17890 100644 (file)
@@ -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);