OSDN Git Service

RDMA/hns: Add support for reporting wc as software mode
authorXi Wang <wangxi11@huawei.com>
Thu, 9 Jan 2020 12:20:12 +0000 (20:20 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 10 Jan 2020 15:17:37 +0000 (11:17 -0400)
commit626903e9355bdf8d401fc0ac7e7407862c642710
tree5abc505c557112abb7f420ec8890ce06ea0b5bd0
parent468d020e2f02867b8ec561461a1689cd4365e493
RDMA/hns: Add support for reporting wc as software mode

When hardware is in resetting stage, we may can't poll back all the
expected work completions as the hardware won't generate cqe anymore.

This patch allows the driver to compose the expected wc instead of the
hardware during resetting stage. Once the hardware finished resetting, we
can poll cq from hardware again.

Link: https://lore.kernel.org/r/1578572412-25756-1-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>
drivers/infiniband/hw/hns/hns_roce_cq.c
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_main.c
drivers/infiniband/hw/hns/hns_roce_qp.c