OSDN Git Service

IB/mlx5: Fix existence check for extended address vector
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 12 Jun 2017 07:36:16 +0000 (10:36 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 24 Jul 2017 14:41:01 +0000 (10:41 -0400)
commit3fffc82ad6c78fcc9d5d4eca089f00db14ab0358
tree617ebac9cac87c86d4773db4ced492fb8d4110cf
parent4c25b7a39005c9243a492b577c3e940eeac36a25
IB/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: 17d2f88f92ce ("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