RDMA/hns: Optimize qp doorbell allocation flow
authorXi Wang <wangxi11@huawei.com>
Mon, 24 Feb 2020 06:37:38 +0000 (14:37 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 28 Feb 2020 15:35:11 +0000 (11:35 -0400)
commitcfec045b822a1c3f8f47604520d3194729d9d2af
tree5273b6c61c338e9228686bdf3205513cfb6100d0
parentb37c413997100d1ad5627bf38f0ebfeee170f305
RDMA/hns: Optimize qp doorbell allocation flow

Encapsulate the kernel qp doorbell allocation related code into 2
functions: alloc_qp_db() and free_qp_db().

Link: https://lore.kernel.org/r/1582526258-13825-8-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@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_qp.c