]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Use MLX5_GET to correctly get end of padding mode
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 28 Jan 2016 15:51:49 +0000 (17:51 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 2 Feb 2016 21:42:22 +0000 (16:42 -0500)
commitd3fae6269792c22bacb96c9e41066c9023284f82
tree6fb6b0c95191021918bb57a5ba77f8e4fbdaa92a
parent1b7204ce2b59c3f1def06963f6218d886ae8859c
IB/mlx5: Use MLX5_GET to correctly get end of padding mode

MLX5_GET64 was used on end_padding_mode, which is a 2-bit field.
This is wrong as the calculated offset is incorrect. Using MLX5_GET
instead of MLX5_GET64 to fix that.

Fixes: cd82870d9e45 ('IB/mlx5: Add create and destroy functionality
                     for Raw Packet QP')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/qp.c