diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2013-10-08 17:36:58 +0200 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2013-12-12 23:06:57 +0100 |
commit | ea136ae71f392341475116a371b92cc78183c2b2 (patch) | |
tree | 8eb2a21769028035f8b080f853017b24bb1b7a52 /drivers/net/ethernet/sfc/mcdi.c | |
parent | sfc: Log all unexpected MCDI errors (diff) | |
download | linux-ea136ae71f392341475116a371b92cc78183c2b2.tar.xz linux-ea136ae71f392341475116a371b92cc78183c2b2.zip |
sfc: Map MCDI error MC_CMD_ERR_ENOTSUP to Linux EOPNOTSUPP
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/mcdi.c')
-rw-r--r-- | drivers/net/ethernet/sfc/mcdi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/mcdi.c b/drivers/net/ethernet/sfc/mcdi.c index aee67be3d8c5..d317dfdee845 100644 --- a/drivers/net/ethernet/sfc/mcdi.c +++ b/drivers/net/ethernet/sfc/mcdi.c @@ -192,6 +192,8 @@ static int efx_mcdi_errno(unsigned int mcdi_err) TRANSLATE_ERROR(EALREADY); TRANSLATE_ERROR(ENOSPC); #undef TRANSLATE_ERROR + case MC_CMD_ERR_ENOTSUP: + return -EOPNOTSUPP; case MC_CMD_ERR_ALLOC_FAIL: return -ENOBUFS; case MC_CMD_ERR_MAC_EXIST: |