RDMA/mlx5: Use ib_umem_find_best_pgsz() for mkc's
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 26 Oct 2020 13:23:14 +0000 (15:23 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 2 Nov 2020 19:10:50 +0000 (15:10 -0400)
commitd5c7916fe4613e9128b0f877f7e2dd0c85f5d2d2
tree69c1fb067c7b813ddbd2c5156f190e43bc01e9fa
parentf1eaac37da20823816af274d69a9eed7444e9822
RDMA/mlx5: Use ib_umem_find_best_pgsz() for mkc's

Now that all the PAS arrays or UMR XLT's for mkcs are filled using
rdma_for_each_block() we can use the common ib_umem_find_best_pgsz()
algorithm.

Link: https://lore.kernel.org/r/20201026132314.1336717-6-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/umem.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c