diff options
author | Yangyang Li <liyangyang20@huawei.com> | 2021-06-10 19:50:13 +0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-06-21 15:42:54 -0300 |
commit | 645f059346bfa32a51c44e638f58bcaa5571167e (patch) | |
tree | 7e9f53a94aa8ad025612bd72584233d19c2bd249 /drivers/infiniband/hw/hns/hns_roce_alloc.c | |
parent | RDMA/hns: Use IDA interface to manage mtpt index (diff) | |
download | linux-dev-645f059346bfa32a51c44e638f58bcaa5571167e.tar.xz linux-dev-645f059346bfa32a51c44e638f58bcaa5571167e.zip |
RDMA/hns: Use IDA interface to manage pd index
Switch pd index allocation and release from hns own bitmap interface
to IDA interface.
Link: https://lore.kernel.org/r/1623325814-55737-6-git-send-email-liweihang@huawei.com
Signed-off-by: Yangyang Li <liyangyang20@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_alloc.c')
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_alloc.c b/drivers/infiniband/hw/hns/hns_roce_alloc.c index dc1f28a26e43..dcdfcc78588e 100644 --- a/drivers/infiniband/hw/hns/hns_roce_alloc.c +++ b/drivers/infiniband/hw/hns/hns_roce_alloc.c @@ -252,6 +252,6 @@ void hns_roce_cleanup_bitmap(struct hns_roce_dev *hr_dev) hns_roce_cleanup_qp_table(hr_dev); hns_roce_cleanup_cq_table(hr_dev); ida_destroy(&hr_dev->mr_table.mtpt_ida.ida); - hns_roce_cleanup_pd_table(hr_dev); + ida_destroy(&hr_dev->pd_ida.ida); hns_roce_cleanup_uar_table(hr_dev); } |