RDMA/verbs: Add a DMA iterator to return aligned contiguous memory blocks
authorShiraz Saleem <shiraz.saleem@intel.com>
Mon, 6 May 2019 13:53:33 +0000 (08:53 -0500)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 6 May 2019 16:08:11 +0000 (13:08 -0300)
commita808273a495c657e33281b181fd7fcc2bb28f662
tree4da75f55f429a761ae4e0bb9bf3126fbe8f996b2
parent4a35339958f16d42a4ca06a8da9d4b5ab39ee8ea
RDMA/verbs: Add a DMA iterator to return aligned contiguous memory blocks

This helper iterates over a DMA-mapped SGL and returns contiguous memory
blocks aligned to a HW supported page size.

Suggested-by: Jason Gunthorpe <jgg@ziepe.ca>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/verbs.c
include/rdma/ib_verbs.h