]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/bnxt_re: Use core helpers to get aligned DMA address
authorShiraz Saleem <shiraz.saleem@intel.com>
Mon, 6 May 2019 13:53:35 +0000 (08:53 -0500)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 6 May 2019 16:08:11 +0000 (13:08 -0300)
commitd85582517e9103604991ac5265855b48ccfd54d8
treea22f4241322e5b1f28ae245ac61f2ccbe8f24c71
parenteb52c0333f06b88bca5bac0dc0aeca729de6eb11
RDMA/bnxt_re: Use core helpers to get aligned DMA address

Call the core helpers to retrieve the HW aligned address to use for the
MR, within a supported bnxt_re page size.

Remove checking the umem->hugtetlb flag as it is no longer required. The
new DMA block iterator will return the 2M aligned address if the MR is
backed by 2M huge pages.

Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c