]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Block MR WR if UMR is not possible
authorMoni Shoua <monis@mellanox.com>
Thu, 15 Aug 2019 08:38:34 +0000 (11:38 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 20 Aug 2019 17:44:45 +0000 (13:44 -0400)
commita92c4f15de2b38c503599d9cd1725258f161c533
treec229dc94e09010602262ae2869ee809c2f413a76
parent4b6895a1cf9c86ddab60132395fa335a6cc61971
IB/mlx5: Block MR WR if UMR is not possible

Check conditions that are mandatory to post_send UMR WQEs.
1. Modifying page size.
2. Modifying remote atomic permissions if atomic access is required.

If either condition is not fulfilled then fail to post_send() flow.

Fixes: 019189b1f4db ("IB/mlx5: Respect new UMR capabilities")
Signed-off-by: Moni Shoua <monis@mellanox.com>
Reviewed-by: Guy Levi <guyle@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Link: https://lore.kernel.org/r/20190815083834.9245-9-leon@kernel.org
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/qp.c