RDMA/hns: Use IDA interface to manage pd index
authorYangyang Li <liyangyang20@huawei.com>
Thu, 10 Jun 2021 11:50:13 +0000 (19:50 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 21 Jun 2021 18:42:54 +0000 (15:42 -0300)
commit645f059346bfa32a51c44e638f58bcaa5571167e
tree7e9f53a94aa8ad025612bd72584233d19c2bd249
parentd38936f01030f39bd90609c4d9c8f09cdaea1b62
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>
drivers/infiniband/hw/hns/hns_roce_alloc.c
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_main.c
drivers/infiniband/hw/hns/hns_roce_pd.c