]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Fix MR re-registration flow to use UMR properly
authorMoni Shoua <monis@mellanox.com>
Thu, 15 Aug 2019 08:38:33 +0000 (11:38 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 20 Aug 2019 17:44:45 +0000 (13:44 -0400)
commit4b6895a1cf9c86ddab60132395fa335a6cc61971
treea742beff4fa4b44af7c7d61145599c5cab437805
parent47ca0c59431023f1773644752a160868b3eee025
IB/mlx5: Fix MR re-registration flow to use UMR properly

The UMR WQE in the MR re-registration flow requires that
modify_atomic and modify_entity_size capabilities are enabled.
Therefore, check that the these capabilities are present before going to
umr flow and go through slow path if not.

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-8-leon@kernel.org
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/mr.c