bnxt_en: Return standard Linux error codes for hwrm flow cmds.
authorVenkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Sat, 10 Mar 2018 04:46:08 +0000 (23:46 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Mar 2018 14:57:59 +0000 (10:57 -0400)
commit6ae777eab2f53b50d84a5d75a48d2d149f787da8
treee605a68c23c0a914c17d209664a86b22e6aaa7e2
parent832aed16ce7af2a43dafe9d4bc9080322e042cde
bnxt_en: Return standard Linux error codes for hwrm flow cmds.

Currently, internal error value is returned by the driver, when
hwrm_cfa_flow_alloc() fails due lack of resources.  We should be returning
Linux errno value -ENOSPC instead.

This patch also converts other similar command errors to standard Linux errno
code (-EIO) in bnxt_tc.c

Fixes: db1d36a27324 ("bnxt_en: add TC flower offload flow_alloc/free FW cmds")
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c