]> 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)
commitc9e0a72963066e8f3c84aa00c30531790d1932b9
tree1efb63d3988076725e15f535a72382acdde0b0b6
parent20c1d4378010073d0cc442993f72f64570485276
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