Commit 5dc1cbcf authored by Moni Shoua's avatar Moni Shoua Committed by Greg Kroah-Hartman

net/mlx5: Fix atomic_mode enum values

[ Upstream commit aa7e80b2 ]

The field atomic_mode is 4 bits wide and therefore can hold values
from 0x0 to 0xf. Remove the unnecessary 20 bit shift that made the values
be incorrect. While that, remove unused enum values.

Fixes: 57cda166 ("net/mlx5: Add DCT command interface")
Signed-off-by: default avatarMoni Shoua <monis@mellanox.com>
Reviewed-by: default avatarArtemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b5f6d6de
...@@ -163,10 +163,7 @@ enum mlx5_dcbx_oper_mode { ...@@ -163,10 +163,7 @@ enum mlx5_dcbx_oper_mode {
}; };
enum mlx5_dct_atomic_mode { enum mlx5_dct_atomic_mode {
MLX5_ATOMIC_MODE_DCT_OFF = 20, MLX5_ATOMIC_MODE_DCT_CX = 2,
MLX5_ATOMIC_MODE_DCT_NONE = 0 << MLX5_ATOMIC_MODE_DCT_OFF,
MLX5_ATOMIC_MODE_DCT_IB_COMP = 1 << MLX5_ATOMIC_MODE_DCT_OFF,
MLX5_ATOMIC_MODE_DCT_CX = 2 << MLX5_ATOMIC_MODE_DCT_OFF,
}; };
enum { enum {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment