]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/bnxt/bnxt_txr.c
ethdev: promote sibling iterators to stable
[dpdk.git] / drivers / net / bnxt / bnxt_txr.c
index 9a6b96e04a2c8d2a2e9fee6cd3960b7872178912..47824334ae3e74f31bd273584735fe8337811a5b 100644 (file)
@@ -461,7 +461,7 @@ static int bnxt_handle_tx_cp(struct bnxt_tx_queue *txq)
                cons = RING_CMPL(ring_mask, raw_cons);
                txcmp = (struct tx_cmpl *)&cpr->cp_desc_ring[cons];
 
                cons = RING_CMPL(ring_mask, raw_cons);
                txcmp = (struct tx_cmpl *)&cpr->cp_desc_ring[cons];
 
-               if (!CMP_VALID(txcmp, raw_cons, cp_ring_struct))
+               if (!bnxt_cpr_cmp_valid(txcmp, raw_cons, ring_mask + 1))
                        break;
 
                opaque = rte_le_to_cpu_32(txcmp->opaque);
                        break;
 
                opaque = rte_le_to_cpu_32(txcmp->opaque);