sfc: Map MCDI error MC_CMD_ERR_ENOTSUP to Linux EOPNOTSUPP
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 8 Oct 2013 15:36:58 +0000 (16:36 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 12 Dec 2013 22:06:57 +0000 (22:06 +0000)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/mcdi.c

index aee67be3d8c56816f427237cfd77fc57dbbe4dc2..d317dfdee84574b074131d8d497e0f8264863f6e 100644 (file)
@@ -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: