net/mlx5: fix flow director flow add
[dpdk.git] / drivers / net / bnxt / bnxt_cpr.c
index d13e6cc..26b2755 100644 (file)
@@ -58,7 +58,7 @@ void bnxt_handle_async_event(struct bnxt *bp,
                bnxt_link_update_op(bp->eth_dev, 0);
                break;
        default:
-               RTE_LOG(ERR, PMD, "handle_async_event id = 0x%x\n", event_id);
+               RTE_LOG(DEBUG, PMD, "handle_async_event id = 0x%x\n", event_id);
                break;
        }
 }
@@ -159,7 +159,8 @@ int bnxt_alloc_def_cp_ring(struct bnxt *bp)
 
        rc = bnxt_hwrm_ring_alloc(bp, cp_ring,
                                  HWRM_RING_ALLOC_INPUT_RING_TYPE_L2_CMPL,
-                                 0, HWRM_NA_SIGNATURE);
+                                 0, HWRM_NA_SIGNATURE,
+                                 HWRM_NA_SIGNATURE);
        if (rc)
                goto err_out;
        cpr->cp_doorbell = bp->pdev->mem_resource[2].addr;
@@ -182,8 +183,10 @@ void bnxt_free_def_cp_ring(struct bnxt *bp)
                return;
 
        bnxt_free_ring(cpr->cp_ring_struct);
+       cpr->cp_ring_struct = NULL;
        rte_free(cpr->cp_ring_struct);
        rte_free(cpr);
+       bp->def_cp_ring = NULL;
 }
 
 /* For the default completion ring only */