|
@@ -509,7 +509,7 @@ static int hns_roce_v2_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *wr,
|
|
spin_lock_irqsave(&hr_qp->rq.lock, flags);
|
|
spin_lock_irqsave(&hr_qp->rq.lock, flags);
|
|
ind = hr_qp->rq.head & (hr_qp->rq.wqe_cnt - 1);
|
|
ind = hr_qp->rq.head & (hr_qp->rq.wqe_cnt - 1);
|
|
|
|
|
|
- if (hr_qp->state == IB_QPS_RESET || hr_qp->state == IB_QPS_ERR) {
|
|
|
|
|
|
+ if (hr_qp->state == IB_QPS_RESET) {
|
|
spin_unlock_irqrestore(&hr_qp->rq.lock, flags);
|
|
spin_unlock_irqrestore(&hr_qp->rq.lock, flags);
|
|
*bad_wr = wr;
|
|
*bad_wr = wr;
|
|
return -EINVAL;
|
|
return -EINVAL;
|