RDMA/hns: Refactor root BT allocation for MTR
authorXi Wang <wangxi11@huawei.com>
Fri, 21 May 2021 09:29:52 +0000 (17:29 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 28 May 2021 23:13:57 +0000 (20:13 -0300)
commit1f704d8cc07269f31daf9bdafe84882ad7596a2c
tree1ab47c6c730fe87e73b34b170ab8775a06d541dd
parent7b0006db6800da4c05883584befa46502d85dede
RDMA/hns: Refactor root BT allocation for MTR

Split the hem_list_alloc_root_bt() into serval small functions to make the
code flow more clear.

Link: https://lore.kernel.org/r/1621589395-2435-3-git-send-email-liweihang@huawei.com
Signed-off-by: Xi Wang <wangxi11@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hem.c