]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Fix existence check for extended address vector
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 1 Aug 2017 06:41:37 +0000 (09:41 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 4 Aug 2017 18:24:05 +0000 (14:24 -0400)
commita4718845e69ac73db9e30446de174a771a2fef9f
tree637cd706c5e865f99691606a8025abeff984af25
parenta1e4bed1f5b13ecf53bf4067ee12355d09706b60
RDMA/mlx5: Fix existence check for extended address vector

The extended address vector is the highest bit in be32 variable,
but it was compared with the lowest. This patch fixes the endianness
of that check and removes already declared define.

Fixes: c60a4039df30 ("IB/mlx5: Add ODP atomics support")
Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/odp.c
include/linux/mlx5/qp.h