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)
commit01581fb89e5a6d41d06132aefe105a506f04ce1e
tree6fb6b0c95191021918bb57a5ba77f8e4fbdaa92a
parent09f16cf59fbf825130c216c3af189253505dc9d9
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: 0fb2ed66a14c ('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