mbox series

[for-next,0/6] RDMA/hns: Use ida to manage index of some resources

Message ID 1623325814-55737-1-git-send-email-liweihang@huawei.com (mailing list archive)
Headers show
Series RDMA/hns: Use ida to manage index of some resources | expand

Message

Weihang Li June 10, 2021, 11:50 a.m. UTC
Index of some resources is managed by bitmap in driver, we first do some
cleanups on the bitmap functions, than replace them with ida interfaces.

Yangyang Li (6):
  RDMA/hns: Remove the unused hns_roce_bitmap_alloc_range function
  RDMA/hns: Remove the unused hns_roce_bitmap_free_range function
  RDMA/hns: Remove unused RR mechanism
  RDMA/hns: Use IDA interface to manage mtpt index
  RDMA/hns: Use IDA interface to manage pd index
  RDMA/hns: Use IDA interface to manage xrcd index

 drivers/infiniband/hw/hns/hns_roce_alloc.c  | 63 ++-----------------
 drivers/infiniband/hw/hns/hns_roce_device.h | 32 ++++------
 drivers/infiniband/hw/hns/hns_roce_hw_v1.c  |  3 +-
 drivers/infiniband/hw/hns/hns_roce_main.c   | 32 +++-------
 drivers/infiniband/hw/hns/hns_roce_mr.c     | 66 ++++++++++----------
 drivers/infiniband/hw/hns/hns_roce_pd.c     | 94 ++++++++++++-----------------
 drivers/infiniband/hw/hns/hns_roce_srq.c    |  4 +-
 7 files changed, 100 insertions(+), 194 deletions(-)

Comments

Jason Gunthorpe June 21, 2021, 6:43 p.m. UTC | #1
On Thu, Jun 10, 2021 at 07:50:08PM +0800, Weihang Li wrote:
> Index of some resources is managed by bitmap in driver, we first do some
> cleanups on the bitmap functions, than replace them with ida interfaces.
> 
> Yangyang Li (6):
>   RDMA/hns: Remove the unused hns_roce_bitmap_alloc_range function
>   RDMA/hns: Remove the unused hns_roce_bitmap_free_range function
>   RDMA/hns: Remove unused RR mechanism
>   RDMA/hns: Use IDA interface to manage mtpt index
>   RDMA/hns: Use IDA interface to manage pd index
>   RDMA/hns: Use IDA interface to manage xrcd index

Applied to for-next, thanks

Jason