aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/mem.c
diff options
context:
space:
mode:
authorShiraz, Saleem <shiraz.saleem@intel.com>2019-02-11 09:25:00 -0600
committerJason Gunthorpe <jgg@mellanox.com>2019-02-11 15:02:33 -0700
commit3856ec55270099494afa0cabba020365a38430a2 (patch)
tree69ec1c5542b8e18499ae4bdf43ed4ad9c26c6f55 /drivers/infiniband/hw/cxgb4/mem.c
parentRDMA/i40iw: Use for_each_sg_dma_page iterator on umem SGL (diff)
downloadlinux-dev-3856ec55270099494afa0cabba020365a38430a2.tar.xz
linux-dev-3856ec55270099494afa0cabba020365a38430a2.zip
RDMA/hns: Use for_each_sg_dma_page iterator on umem SGL
Use the for_each_sg_dma_page iterator variant to walk the umem DMA-mapped SGL and get the page DMA address. This avoids the extra loop to iterate pages in the SGE when for_each_sg iterator is used. Additionally, purge umem->page_shift usage in the driver as its only relevant for ODP MRs. Use system page size and shift instead. Signed-off-by: Shiraz, Saleem <shiraz.saleem@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/mem.c')
0 files changed, 0 insertions, 0 deletions