IB/mlx5: Enable UMR for MRs created with reg_create
authorIlya Lesokhin <ilyal@mellanox.com>
Thu, 17 Aug 2017 12:52:29 +0000 (15:52 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Aug 2017 21:47:34 +0000 (17:47 -0400)
commit8b7ff7f3b301de52924cb2cf3fed47b181893116
tree7bd7fb2e1c80b725ceaa41f905996e824e24ae24
parent96dc3fc5f1d66b20cdf839d571c7b907e08d5d00
IB/mlx5: Enable UMR for MRs created with reg_create

This patch is the first step in decoupling UMR usage and
allocation from the MR cache. The only functional change
in this patch is to enables UMR for MRs created with
reg_create.

This change fixes a bug where ODP memory regions that
were not allocated from the MR cache did not have UMR
enabled.

Signed-off-by: Ilya Lesokhin <ilyal@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c
include/linux/mlx5/driver.h