net/bnxt: fail init when mbuf allocation fails
[dpdk.git] / drivers / net / bnxt / bnxt_ring.c
index 7940d48..dc437f3 100644 (file)
@@ -648,8 +648,9 @@ int bnxt_alloc_hwrm_rx_ring(struct bnxt *bp, int queue_index)
 
        if (rxq->rx_started) {
                if (bnxt_init_one_rx_ring(rxq)) {
-                       PMD_DRV_LOG(ERR, "bnxt_init_one_rx_ring failed!\n");
-                       bnxt_rx_queue_release_op(bp->eth_dev, queue_index);
+                       PMD_DRV_LOG(ERR,
+                                   "ring%d bnxt_init_one_rx_ring failed!\n",
+                                   queue_index);
                        rc = -ENOMEM;
                        goto err_out;
                }