]> 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)
commit7e47d4be10c5facde73a18124994724084fc60e7
treee605a68c23c0a914c17d209664a86b22e6aaa7e2
parent9c77b10aaa0a2a4ef8907d6539f8c5057577464e
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: 06410ad6118c ("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