RDMA/mlx5: Change mlx5_ib_populate_pas() to use rdma_for_each_block()
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 26 Oct 2020 13:23:10 +0000 (15:23 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 2 Nov 2020 18:53:54 +0000 (14:53 -0400)
commitaab8d3966d2c2aa6c59fbacdb17d82156653754f
tree40f7bab5207c0de9fe0ac913de9f32fbb33fff5d
parentf8fb3110635c91a375399450dc5a4a79a83b0414
RDMA/mlx5: Change mlx5_ib_populate_pas() to use rdma_for_each_block()

This routine converts the umem SGL into a list of fixed pages for DMA,
which is exactly what rdma_umem_for_each_dma_block() is for, use the
common code directly.

Link: https://lore.kernel.org/r/20201026132314.1336717-2-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/cq.c
drivers/infiniband/hw/mlx5/devx.c
drivers/infiniband/hw/mlx5/mem.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c
drivers/infiniband/hw/mlx5/qp.c
drivers/infiniband/hw/mlx5/srq.c