Re: [PATCH] RDMA/bnxt_re: Use rdma_umem_for_each_dma_block()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 29, 2020 at 09:24:35PM -0300, Jason Gunthorpe wrote:
> 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.
> 
> Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
> Acked-by: Selvin Xavier <selvin.xavier@xxxxxxxxxxxx>
> Tested-by: Selvin Xavier <selvin.xavier@xxxxxxxxxxxx>
> ---
>  drivers/infiniband/hw/bnxt_re/ib_verbs.c  | 18 +++-----------
>  drivers/infiniband/hw/bnxt_re/qplib_res.c | 30 +++++++++++++----------
>  drivers/infiniband/hw/bnxt_re/qplib_res.h |  3 +--
>  3 files changed, 22 insertions(+), 29 deletions(-)

Applied to for-next, thanks for checking

Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux