IB/mlx5: Advertise atomic capabilities in query device
authorEran Ben Elisha <eranbe@mellanox.com>
Mon, 14 Dec 2015 14:34:10 +0000 (16:34 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Dec 2015 05:17:31 +0000 (00:17 -0500)
commitda7525d2a9ae9d9d9af754441befcf2560f6cac3
tree280a3004346f467430561a45831ee9d2abad9282
parentf91e6d8941bf450f7842dfc1ed80e948aaa65e8c
IB/mlx5: Advertise atomic capabilities in query device

In order to ensure IB spec atomic correctness in atomic operations, if
HW is configured to host endianness, advertise IB_ATOMIC_HCA.  if not,
advertise IB_ATOMIC_NONE.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
include/linux/mlx5/driver.h