net/bnxt: fix resource qcaps with older FW
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Mon, 18 Nov 2019 22:23:45 +0000 (14:23 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Nov 2019 16:36:06 +0000 (17:36 +0100)
commit89a0deb866dc42ead92b79e6e7159622e1ab8490
treef9ffb776258ada8ee4afad0aceaef61fbf02e2de
parentc1b22c18decc0f90d80d8d6736cd48468c99fe46
net/bnxt: fix resource qcaps with older FW

On some old versions of FW, bnxt_hwrm_func_resc_qcaps can return an
error. This is because the command was not implemented completely
in FW till the subsequent version. Ignore the error and continue with
the driver initialization.

Fixes: edafb57ba4a1 ("net/bnxt: fix VF resource allocation")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt_hwrm.c