IB/mlx5: Add support for extended atomic operations
authorYonatan Cohen <yonatanc@mellanox.com>
Wed, 10 Oct 2018 06:25:16 +0000 (09:25 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 17 Oct 2018 15:53:23 +0000 (11:53 -0400)
commita60109dc9a954ef9eddba6577e2d2e9e7952e487
tree1efb63d3988076725e15f535a72382acdde0b0b6
parent76d865b87c327b34c0e24f23e75828878022f899
IB/mlx5: Add support for extended atomic operations

Extended atomic operations cmp&swp and fetch&add is a Mellanox
feature extending the standard atomic operation to use, varied
operand sizes, as apposed to normal atomic operation that use
an 8 byte operand only.
Extended atomics allows masking the results and arguments.

This patch configures QP to support extended atomic operation
with the maximum size possible, as exposed by HCA capabilities.

Signed-off-by: Yonatan Cohen <yonatanc@mellanox.com>
Reviewed-by: Guy Levi <guyle@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/qp.c
include/linux/mlx5/driver.h