]> 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)
commitb0f56d0499a8ea56d2261c9f04a619e1b6d77ad2
treec229dc94e09010602262ae2869ee809c2f413a76
parente79eb3fc51bc3ceb37792fdf9aed9ca42304fdfc
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: 6b538ebbfdf2 ("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