RDMA/mlx5: set UMR wqe fence according to HCA cap
authorMax Gurtovoy <maxg@mellanox.com>
Sun, 28 May 2017 07:53:11 +0000 (10:53 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 1 Jun 2017 21:19:57 +0000 (17:19 -0400)
commit6e8484c5cf07c7ee632587e98c1a12d319dacb7c
treea8637da3ff6e73f3610ee7b346f1ccfc0740e89b
parent1410a90ae449061b7e1ae19d275148f36948801b
RDMA/mlx5: set UMR wqe fence according to HCA cap

Cache the needed umr_fence and set the wqe ctrl segmennt
accordingly.

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Acked-by: Leon Romanovsky <leon@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c