]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix atomic_mode enum values
authorMoni Shoua <monis@mellanox.com>
Mon, 3 Sep 2018 17:19:28 +0000 (20:19 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Tue, 4 Sep 2018 12:03:06 +0000 (15:03 +0300)
commite687ac27fa6b0ff9b088cf238661786f41ba8743
treee38d15984444dc138d21e0f5684e30c80a537baa
parent0ff97265403d59a684be8666710156706ccfd8fa
net/mlx5: Fix atomic_mode enum values

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: 5c3953fbbff7 ("net/mlx5: Add DCT command interface")
Signed-off-by: Moni Shoua <monis@mellanox.com>
Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
include/linux/mlx5/driver.h