OSDN Git Service

RDMA/qedr: Use rdma_umem_for_each_dma_block() instead of open-coding
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 4 Sep 2020 22:41:50 +0000 (19:41 -0300)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 11 Sep 2020 13:24:53 +0000 (10:24 -0300)
commit68363052ff5addd3817a104cc453f4e2045704c9
tree31502da98c659cfa0e902f6d6417d8ce4fb1e3f7
parent22123a0e4974fe03d1d8446b132a6c455f95a516
RDMA/qedr: Use rdma_umem_for_each_dma_block() instead of open-coding

This loop is splitting the DMA SGL into pg_shift sized pages, use the core
code for this directly.

Link: https://lore.kernel.org/r/9-v2-270386b7e60b+28f4-umem_1_jgg@nvidia.com
Acked-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/qedr/verbs.c