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

Encapsulate the kernel qp wrid allocation related code into 2 functions:
alloc_kernel_wrid() and free_kernel_wrid().

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