On Tue, Jun 30, 2020 at 10:01:36PM +0800, Weihang Li wrote: > From: Xi Wang <wangxi11@xxxxxxxxxx> > > If hns ROCEE is set to level-0 addressing, the length of the entire buffer > can be used as the page size. The driver needn't to split the buffer into > small units because all pages are continuous. > > Signed-off-by: Xi Wang <wangxi11@xxxxxxxxxx> > Signed-off-by: Weihang Li <liweihang@xxxxxxxxxx> > --- > drivers/infiniband/hw/hns/hns_roce_device.h | 20 +-- > drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 7 +- > drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 44 +----- > drivers/infiniband/hw/hns/hns_roce_mr.c | 208 +++++++++++++++++----------- > 4 files changed, 147 insertions(+), 132 deletions(-) Applied to for-next, thanks Jason