]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit053da2f623fe16fb609217bfee5ecb1485e01ca4
treee605a68c23c0a914c17d209664a86b22e6aaa7e2
parent2a34408fffbdbeb03e528ee597ab8bc87e2663bb
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: 3d243360ebf5 ("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