Re: [PATCH rdma-next v1 3/6] RDMA/umem: Add API to return aligned memory blocks from SGL

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

 



On 19-Feb-19 16:57, Shiraz Saleem wrote:
> This helper iterates over the SG list and returns contiguous
> memory blocks aligned to a HW supported page size.
> The implementation is intended to work for HW that support
> single page sizes or mixed page sizes in an MR. Drivers
> can use this helper to retreive the DMA addresses aligned
> to their best supported page size.
> 
> Suggested-by: Jason Gunthorpe <jgg@xxxxxxxx>
> Reviewed-by: Michael J. Ruhl <michael.j.ruhl@xxxxxxxxx>
> Signed-off-by: Shiraz Saleem <shiraz.saleem@xxxxxxxxx>

Hi Shiraz,
General question about this patch.
I'm going to need a very similar iterator API, except it shouldn't go through an
ib_umem object. Instead, a scatterlist would be given explicitly as a parameter.

Do you think there's a way to make this code more generic and then use it for
umem as a specific use case? I'll be glad to help with any changes needed.

Thanks,
Gal



[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