RDMA/hns: Fix the unneeded process when getting a general type of CQE error
authorXi Wang <wangxi11@huawei.com>
Tue, 28 Jul 2020 10:42:21 +0000 (18:42 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 30 Jul 2020 18:11:49 +0000 (15:11 -0300)
commit395f2e8fd340c5bfad026f5968b56ec34cf20dd1
tree87bd714a2235c5707c7bffb72d5a0fbf4b2b9a5c
parent4327bd2c41412657ee2c8c0d8d3d1945268b4238
RDMA/hns: Fix the unneeded process when getting a general type of CQE error

If the hns ROCEE reports a general error CQE (types not specified by the IB
General Specifications), it's no need to change the QP state to error, and
the driver should just skip it.

Fixes: 7c044adca272 ("RDMA/hns: Simplify the cqe code of poll cq")
Link: https://lore.kernel.org/r/1595932941-40613-8-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@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h