diff options
author | Shiraz Saleem <shiraz.saleem@intel.com> | 2019-05-06 16:53:34 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-05-06 19:08:11 +0300 |
commit | eb52c0333f06b88bca5bac0dc0aeca729de6eb11 (patch) | |
tree | c4056004b8d1dc3d51af41251ea07280f028751a /drivers/infiniband/hw/bnxt_re/ib_verbs.c | |
parent | a808273a495c657e33281b181fd7fcc2bb28f662 (diff) | |
download | linux-eb52c0333f06b88bca5bac0dc0aeca729de6eb11.tar.xz |
RDMA/i40iw: Use core helpers to get aligned DMA address within a supported page size
Call the core helpers to retrieve the HW aligned address to use for the
MR, within a supported i40iw page size.
Remove code in i40iw to determine when MR is backed by 2M huge pages which
involves checking the umem->hugetlb flag and VMA inspection. The new DMA
iterator will return the 2M aligned address if the MR is backed by 2M
pages.
Fixes: f26c7c83395b ("i40iw: Add 2MB page support")
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/bnxt_re/ib_verbs.c')
0 files changed, 0 insertions, 0 deletions