net/bnxt: check access denied for HWRM commands
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Thu, 26 Jul 2018 01:15:47 +0000 (18:15 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 2 Aug 2018 10:12:47 +0000 (12:12 +0200)
commit6dc875ab5ff76377376906aa6d05d95ffd34b9f9
treeb3c9609473fdad971739cb530889c6b59bc21c70
parent4623c0d4b572e9bea28d59e6e54ae6d5dab2412e
net/bnxt: check access denied for HWRM commands

Firmware can restrict access to certain resources in the hardware
depending on various factors. In such cases when the PMD tries to
configure these resources the firmware will return
HWRM_ERR_CODE_RESOURCE_ACCESS_DENIED error. Parse this and return
the standard EACCES error to the applications.

Fixes: 804e746c7b73 ("net/bnxt: add hardware resource manager init code")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_hwrm.c