net/ice/base: add hook to send AdminQ command
[dpdk.git] / drivers / net / bnxt / bnxt_rxr.c
index 1960b05..bef9720 100644 (file)
@@ -678,10 +678,11 @@ uint16_t bnxt_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,
 
        /* Attempt to alloc Rx buf in case of a previous allocation failure. */
        if (rc == -ENOMEM) {
-               int i;
+               int i = RING_NEXT(rxr->rx_ring_struct, prod);
+               int cnt = nb_rx_pkts;
 
-               for (i = prod; i <= nb_rx_pkts;
-                       i = RING_NEXT(rxr->rx_ring_struct, i)) {
+               for (; cnt;
+                       i = RING_NEXT(rxr->rx_ring_struct, i), cnt--) {
                        struct bnxt_sw_rx_bd *rx_buf = &rxr->rx_buf_ring[i];
 
                        /* Buffer already allocated for this index. */
@@ -909,11 +910,8 @@ void bnxt_set_mark_in_mbuf(struct bnxt *bp,
        if (!cfa_code)
                return;
 
-       if (cfa_code && !bp->mark_table[cfa_code].valid) {
-               PMD_DRV_LOG(WARNING, "Invalid mark_tbl entry! cfa_code: 0x%x\n",
-                           cfa_code);
+       if (cfa_code && !bp->mark_table[cfa_code].valid)
                return;
-       }
 
        flags2 = rte_le_to_cpu_16(rxcmp1->flags2);
        meta = rte_le_to_cpu_32(rxcmp1->metadata);