mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
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>
This commit is contained in:
@@ -2115,9 +2115,9 @@ static void devx_umem_reg_cmd_build(struct mlx5_ib_dev *dev,
|
||||
MLX5_SET(umem, umem, log_page_size, obj->page_shift -
|
||||
MLX5_ADAPTER_PAGE_SHIFT);
|
||||
MLX5_SET(umem, umem, page_offset, obj->page_offset);
|
||||
mlx5_ib_populate_pas(dev, obj->umem, obj->page_shift, mtt,
|
||||
mlx5_ib_populate_pas(obj->umem, 1UL << obj->page_shift, mtt,
|
||||
(obj->umem->writable ? MLX5_IB_MTT_WRITE : 0) |
|
||||
MLX5_IB_MTT_READ);
|
||||
MLX5_IB_MTT_READ);
|
||||
}
|
||||
|
||||
static int UVERBS_HANDLER(MLX5_IB_METHOD_DEVX_UMEM_REG)(
|
||||
|
||||
Reference in New Issue
Block a user