Message ID | 1574299169-31457-8-git-send-email-liweihang@hisilicon.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | libhns: Bugfix for hip08 | expand |
diff --git a/providers/hns/hns_roce_u_hw_v2.c b/providers/hns/hns_roce_u_hw_v2.c index 64dea8e..a8d3d11 100644 --- a/providers/hns/hns_roce_u_hw_v2.c +++ b/providers/hns/hns_roce_u_hw_v2.c @@ -287,10 +287,9 @@ static int hns_roce_flush_cqe(struct hns_roce_qp **cur_qp, struct ibv_wc *wc) attr.qp_state = IBV_QPS_ERR; ret = hns_roce_u_v2_modify_qp(&(*cur_qp)->ibv_qp, &attr, attr_mask); - if (ret) { + if (ret) fprintf(stderr, PFX "failed to modify qp!\n"); - return ret; - } + (*cur_qp)->ibv_qp.state = IBV_QPS_ERR; }