]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5b20122c415b924eb0302311b1a7c46e616dc4e5
tree1efb63d3988076725e15f535a72382acdde0b0b6
parentbec6d4b07f7903313caabd47100d7b99f72d0488
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