IB/mlx5: Fix MR registration flow to use UMR properly
authorGuy Levi <guyle@mellanox.com>
Wed, 31 Jul 2019 08:19:29 +0000 (11:19 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 1 Aug 2019 15:49:51 +0000 (11:49 -0400)
commite5366d309a772fef264ec85e858f9ea46f939848
tree46ba99871db22e3cc3c3f6c8d161dc95e3be0481
parent9cd5881719e9555cae300ec8b389eda3c8101339
IB/mlx5: Fix MR registration flow to use UMR properly

Driver shouldn't allow to use UMR to register a MR when
umr_modify_atomic_disabled is set. Otherwise it will always end up with a
failure in the post send flow which sets the UMR WQE to modify atomic access
right.

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