Skip to content

Commit 9c86513

Browse files
Eli Cohenrolandd
authored andcommitted
mlx5: Fix error code translation from firmware to driver
Limits exceeded should be translated to ENOMEM. Signed-off-by: Eli Cohen <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
1 parent a4774e9 commit 9c86513

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/cmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,7 @@ int mlx5_cmd_status_to_err(struct mlx5_outbox_hdr *hdr)
15121512
case MLX5_CMD_STAT_BAD_SYS_STATE_ERR: return -EIO;
15131513
case MLX5_CMD_STAT_BAD_RES_ERR: return -EINVAL;
15141514
case MLX5_CMD_STAT_RES_BUSY: return -EBUSY;
1515-
case MLX5_CMD_STAT_LIM_ERR: return -EINVAL;
1515+
case MLX5_CMD_STAT_LIM_ERR: return -ENOMEM;
15161516
case MLX5_CMD_STAT_BAD_RES_STATE_ERR: return -EINVAL;
15171517
case MLX5_CMD_STAT_IX_ERR: return -EINVAL;
15181518
case MLX5_CMD_STAT_NO_RES_ERR: return -EAGAIN;

0 commit comments

Comments
 (0)