sfc: Map MCDI error MC_CMD_ERR_ENOTSUP to Linux EOPNOTSUPP
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
This commit is contained in:
parent
1e0b8120b2
commit
ea136ae71f
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue