]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Refactor hns_roce_v2_poll_one()
authorWeihang Li <liweihang@huawei.com>
Sat, 27 Mar 2021 03:21:30 +0000 (11:21 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 1 Apr 2021 19:12:44 +0000 (16:12 -0300)
commit951c4a99390682351aa33272cdc4b624e47b01f3
tree86395c4afaa4a6309fb9b67e6587e0a24acfee67
parentdafb9a7a0b3699c677a44018dd321b775b7552f5
RDMA/hns: Refactor hns_roce_v2_poll_one()

Encapsulate the process of obtaining the current QP and filling WC as
functions, also merge some duplicate code.

Link: https://lore.kernel.org/r/1616815294-13434-2-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c