From: Yongping Zhang Date: Sat, 29 Sep 2018 02:00:01 +0000 (-0700) Subject: net/bnxt: fix registration of VF async event completion ring X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5f267bae3ee6da6ee158276055255b6ef5287caf;p=dpdk.git net/bnxt: fix registration of VF async event completion ring While registering vf's event completion ring to FW, use the wrong macro, FW doesn't set up the event completion ring successfully, VF can't receive any async event. Fixes: 4535cad39515 ("net/bnxt: handle VF/PF initialization appropriately") Cc: stable@dpdk.org Signed-off-by: Yongping Zhang Signed-off-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 62da254b9e..51fe3a4c2e 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -3001,7 +3001,7 @@ int bnxt_hwrm_vf_func_cfg_def_cp(struct bnxt *bp) HWRM_PREP(req, FUNC_VF_CFG, BNXT_USE_CHIMP_MB); req.enables = rte_cpu_to_le_32( - HWRM_FUNC_CFG_INPUT_ENABLES_ASYNC_EVENT_CR); + HWRM_FUNC_VF_CFG_INPUT_ENABLES_ASYNC_EVENT_CR); req.async_event_cr = rte_cpu_to_le_16( bp->def_cp_ring->cp_ring_struct->fw_ring_id); rc = bnxt_hwrm_send_message(bp, &req, sizeof(req), BNXT_USE_CHIMP_MB);