RDMA/hns: Optimize the MR registration process
authorLang Cheng <chenglang@huawei.com>
Sat, 23 Jan 2021 09:48:01 +0000 (17:48 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 28 Jan 2021 14:51:06 +0000 (10:51 -0400)
commit4e9fc1dae2a96e7df9b923c6de76527da9c18dda
tree3ddf8ce5700a70b95dbf388c31788483ba2ee590
parent0e0ab04b5bbe84b58097d6dabb3b01b93ce2bf77
RDMA/hns: Optimize the MR registration process

When creating or re-registering an MR, storing the PDN, access flag and
IOVA information ASAP can simplify the number of parameters passed into
the subsequent process.

Link: https://lore.kernel.org/r/1611395282-991-3-git-send-email-liweihang@huawei.com
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_mr.c