net/bnxt: fix VF info allocation
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Thu, 4 Mar 2021 09:07:28 +0000 (14:37 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Fri, 12 Mar 2021 06:13:28 +0000 (07:13 +0100)
commit01406837bf49950fa3a3fdd9d62eb7e0819383e4
tree8af734928e2b74152ed938a42da959b865c94c85
parent3972281f47b2cc0cf844698885f0e6b4228c0975
net/bnxt: fix VF info allocation

1. Renamed bnxt_hwrm_alloc_vf_info()/bnxt_hwrm_free_vf_info to
   bnxt_alloc_vf_info()/bnxt_free_vf_info as it does not
   issue any HWRM command to fw.
2. Fix missing unlock when memory allocation fails.

Fixes: b7778e8a1c00 ("net/bnxt: refactor to properly allocate resources for PF/VF")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bnxt/bnxt_hwrm.c
drivers/net/bnxt/bnxt_hwrm.h