net/bnxt: fix ring type macro name

Use consistent macro names for ring type values. (There is no
functional change, the "alloc" and "free" values are identical.)

Fixes: 6371b91fb6 ("net/bnxt: add ring alloc/free")
Cc: stable@dpdk.org

Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
This commit is contained in:
Lance Richardson 2019-06-02 13:42:37 -04:00 committed by Ferruh Yigit
parent 3858965c3a
commit 1f91ae9857

View File

@ -1136,17 +1136,17 @@ int bnxt_hwrm_ring_alloc(struct bnxt *bp,
if (rc == 0 && resp->error_code) if (rc == 0 && resp->error_code)
rc = rte_le_to_cpu_16(resp->error_code); rc = rte_le_to_cpu_16(resp->error_code);
switch (ring_type) { switch (ring_type) {
case HWRM_RING_FREE_INPUT_RING_TYPE_L2_CMPL: case HWRM_RING_ALLOC_INPUT_RING_TYPE_L2_CMPL:
PMD_DRV_LOG(ERR, PMD_DRV_LOG(ERR,
"hwrm_ring_alloc cp failed. rc:%d\n", rc); "hwrm_ring_alloc cp failed. rc:%d\n", rc);
HWRM_UNLOCK(); HWRM_UNLOCK();
return rc; return rc;
case HWRM_RING_FREE_INPUT_RING_TYPE_RX: case HWRM_RING_ALLOC_INPUT_RING_TYPE_RX:
PMD_DRV_LOG(ERR, PMD_DRV_LOG(ERR,
"hwrm_ring_alloc rx failed. rc:%d\n", rc); "hwrm_ring_alloc rx failed. rc:%d\n", rc);
HWRM_UNLOCK(); HWRM_UNLOCK();
return rc; return rc;
case HWRM_RING_FREE_INPUT_RING_TYPE_TX: case HWRM_RING_ALLOC_INPUT_RING_TYPE_TX:
PMD_DRV_LOG(ERR, PMD_DRV_LOG(ERR,
"hwrm_ring_alloc tx failed. rc:%d\n", rc); "hwrm_ring_alloc tx failed. rc:%d\n", rc);
HWRM_UNLOCK(); HWRM_UNLOCK();