]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/i40e/i40e_rxtx_vec_avx2.c
net/bnxt: fix error handling in port start
[dpdk.git] / drivers / net / i40e / i40e_rxtx_vec_avx2.c
index dbcb61f38fd49fd324d29b9b5d0830b44cba612c..23179b3b8506d25c43022382766b204dbcc2a336 100644 (file)
@@ -188,7 +188,7 @@ _recv_raw_pkts_vec_avx2(struct i40e_rx_queue *rxq, struct rte_mbuf **rx_pkts,
        /* See if we need to rearm the RX queue - gives the prefetch a bit
         * of time to act
         */
-       while (rxq->rxrearm_nb > RTE_I40E_RXQ_REARM_THRESH)
+       if (rxq->rxrearm_nb > RTE_I40E_RXQ_REARM_THRESH)
                i40e_rxq_rearm(rxq);
 
        /* Before we start moving massive data around, check to see if