]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Convert error code in firmware message response to standard code.
authorMichael Chan <michael.chan@broadcom.com>
Fri, 30 Aug 2019 03:54:46 +0000 (23:54 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2019 21:02:18 +0000 (14:02 -0700)
commitf0cf8a1b71cb6ac347dd8d1aeb00bfeb5f038abb
tree6a721ef7a3ec508fde9564fc30fefa3355dd0373
parentfadc29ad076a73d9f5d412d247e2a590d3d817eb
bnxt_en: Convert error code in firmware message response to standard code.

The main firmware messaging function returns the firmware defined error
code and many callers have to convert to standard error code for proper
propagation to userspace.  Convert bnxt_hwrm_do_send_msg() to return
standard error code so we can do away with all the special error code
handling by the many callers.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c