OSDN Git Service

RDMA/hns: Optimize PBL buffer allocation process
authorXi Wang <wangxi11@huawei.com>
Tue, 28 Apr 2020 11:03:39 +0000 (19:03 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 6 May 2020 20:26:43 +0000 (17:26 -0300)
commit9b2cf76c9f052987ae5c4ad450ebebdc7c5d7b87
treeb12e04c6037bf9908c0cab707eb546c9ca59bc90
parent5ac55dfc6d92c12d5ef423cd16165eb0350f8f51
RDMA/hns: Optimize PBL buffer allocation process

PBL table has its own implementation for multi-hop addressing currently,
but for the hardware, all table's addressing use the same logic, there is
no need to implement repeatedly. So optimize the PBL buffer allocation
process by using the mtr's interfaces.

Link: https://lore.kernel.org/r/1588071823-40200-2-git-send-email-liweihang@huawei.com
Signed-off-by: Xi Wang <wangxi11@huawei.com>
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_mr.c