RDMA/hns: Use IDA interface to manage xrcd index
authorYangyang Li <liyangyang20@huawei.com>
Thu, 10 Jun 2021 11:50:14 +0000 (19:50 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 21 Jun 2021 18:42:54 +0000 (15:42 -0300)
commitda43b7bebc3504f232b0849c04b787ca1544bee2
tree80c03d0f26d6898de04a8524db33ed6d1854f9dc
parent645f059346bfa32a51c44e638f58bcaa5571167e
RDMA/hns: Use IDA interface to manage xrcd index

Switch xrcd index allocation and release from hns own bitmap interface
to IDA interface.

Link: https://lore.kernel.org/r/1623325814-55737-7-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