> -----Original Message----- > From: linux-rdma-owner@xxxxxxxxxxxxxxx <linux-rdma- > owner@xxxxxxxxxxxxxxx> On Behalf Of Shiraz Saleem > Sent: Saturday, January 26, 2019 10:59 AM > To: dledford@xxxxxxxxxx; jgg@xxxxxxxx; linux-rdma@xxxxxxxxxxxxxxx > Cc: Shiraz, Saleem <shiraz.saleem@xxxxxxxxx>; Steve Wise > <swise@xxxxxxxxxxx> > Subject: [PATCH RFC 06/12] RDMA/cxgb3: Use for_each_sg_dma_page > iterator on umem SGL > > From: "Shiraz, Saleem" <shiraz.saleem@xxxxxxxxx> > > 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. > > Cc: Steve Wise <swise@xxxxxxxxxxx> > Signed-off-by: Shiraz, Saleem <shiraz.saleem@xxxxxxxxx> Acked-by: Steve Wise <swise@xxxxxxxxxxxxxxxxxxxxx>