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)
commit4940b0ab458adc9446291a50b61f5e7607f0082b
tree86395c4afaa4a6309fb9b67e6587e0a24acfee67
parentd907294b27d074c4d9813509bfee982ca70db33d
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