]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
RDMA/hns: Optimize kernel qp wrid allocation flow
authorXi Wang <wangxi11@huawei.com>
Mon, 24 Feb 2020 06:37:37 +0000 (14:37 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 7 Apr 2020 20:11:39 +0000 (15:11 -0500)
commitf6f8105279ee3fc7029911ceb38cd44819f48ffe
treea2ef4f8b308dc9256a51b3ebe2412f6d41a90fac
parentcd18865109cd682c79080d8a09d8eaad395028f9
RDMA/hns: Optimize kernel qp wrid allocation flow

BugLink: https://launchpad.net/bugs/1864950
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>
(cherry picked from commit b37c413997100d1ad5627bf38f0ebfeee170f305)
Signed-off-by: Ike Panhc <ike.pan@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/infiniband/hw/hns/hns_roce_qp.c