]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/bnxt_re: Use rdma_umem_for_each_dma_block()
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 30 Sep 2020 00:24:35 +0000 (21:24 -0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 6 Oct 2020 19:45:53 +0000 (16:45 -0300)
commitcbe27db9c014fa81f6a3b4c7d2506bdf2a68c6cb
treedcc4d686b70a9053804bf5e52d6c37f6ef52ac7d
parentb14037a39c88d707b7a0bf7571ab9a072a2ad090
RDMA/bnxt_re: Use rdma_umem_for_each_dma_block()

This driver is taking the SGL out of the umem and passing it through a
struct bnxt_qplib_sg_info. Instead of passing the SGL pass the umem and
then use rdma_umem_for_each_dma_block() directly.

Move the calls of ib_umem_num_dma_blocks() closer to their actual point of
use, npages is only set for non-umem pbl flows.

Link: https://lore.kernel.org/r/0-v1-b37437a73f35+49c-bnxt_re_dma_block_jgg@nvidia.com
Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>
Tested-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c
drivers/infiniband/hw/bnxt_re/qplib_res.c
drivers/infiniband/hw/bnxt_re/qplib_res.h