]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit22cacacc1c75ee7604006660365bb115949bad70
tree46ba99871db22e3cc3c3f6c8d161dc95e3be0481
parent3704eb16849d7ace43daefdc00a287689847ff76
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: 6b538ebbfdf2 ("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