RDMA/hns: Refactor the alloc_srqc()
authorChengchang Tang <tangchengchang@huawei.com>
Wed, 2 Mar 2022 06:48:29 +0000 (14:48 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 4 Mar 2022 21:36:32 +0000 (17:36 -0400)
commitb65afbd2a05cdc7cff1c0db742b2ed4510d4826f
tree49a41c8ed941f341c130cfa3e1bf8c315fb2dd18
parent904de76c42b7d758e75197f8d532a1ffafc3caad
RDMA/hns: Refactor the alloc_srqc()

Abstract the alloc_srqc() into several parts and separate the alloc_srqn()
from the alloc_srqc().

Link: https://lore.kernel.org/r/20220302064830.61706-9-liangwenpeng@huawei.com
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_srq.c