projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4774e9
)
mlx5: Fix error code translation from firmware to driver
author
Eli Cohen
<
[email protected]
>
Wed, 11 Sep 2013 13:35:33 +0000
(16:35 +0300)
committer
Roland Dreier
<
[email protected]
>
Thu, 10 Oct 2013 16:23:59 +0000
(09:23 -0700)
Limits exceeded should be translated to ENOMEM.
Signed-off-by: Eli Cohen <
[email protected]
>
Signed-off-by: Roland Dreier <
[email protected]
>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/cmd.c
b/drivers/net/ethernet/mellanox/mlx5/core/cmd.c
index db3a6584939f6561b18a8e67e0fe1db05f10daa2..6ca30739625f7ac568d693b5d4b9d3d9e47b46de 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
@@
-1512,7
+1512,7
@@
int mlx5_cmd_status_to_err(struct mlx5_outbox_hdr *hdr)
case MLX5_CMD_STAT_BAD_SYS_STATE_ERR: return -EIO;
case MLX5_CMD_STAT_BAD_RES_ERR: return -EINVAL;
case MLX5_CMD_STAT_RES_BUSY: return -EBUSY;
- case MLX5_CMD_STAT_LIM_ERR: return -E
INVAL
;
+ case MLX5_CMD_STAT_LIM_ERR: return -E
NOMEM
;
case MLX5_CMD_STAT_BAD_RES_STATE_ERR: return -EINVAL;
case MLX5_CMD_STAT_IX_ERR: return -EINVAL;
case MLX5_CMD_STAT_NO_RES_ERR: return -EAGAIN;