OSDN Git Service

RDMA/hns: Encapsulate flushing CQE as a function
authorWenpeng Liang <liangwenpeng@huawei.com>
Fri, 18 Jun 2021 10:10:18 +0000 (18:10 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 22 Jun 2021 18:17:07 +0000 (15:17 -0300)
commitc462a0242bd938967c9a69c41364f80e188c1a7a
treeb20db4ba16c5c7e1460093c70f6eaf25ef70b519
parenta33958ca5204f8d2342fd8fe9f547e33fa6c07ed
RDMA/hns: Encapsulate flushing CQE as a function

The process of flushing CQE can be encapsultated into a function, which
can reduce duplicate code.

Link: https://lore.kernel.org/r/1624011020-16992-9-git-send-email-liweihang@huawei.com
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_qp.c