|
@@ -3156,7 +3156,8 @@ static int __mlx5_ib_modify_qp(struct ib_qp *ibqp,
|
|
|
* If we moved a kernel QP to RESET, clean up all old CQ
|
|
|
* entries and reinitialize the QP.
|
|
|
*/
|
|
|
- if (new_state == IB_QPS_RESET && !ibqp->uobject) {
|
|
|
+ if (new_state == IB_QPS_RESET &&
|
|
|
+ !ibqp->uobject && ibqp->qp_type != IB_QPT_XRC_TGT) {
|
|
|
mlx5_ib_cq_clean(recv_cq, base->mqp.qpn,
|
|
|
ibqp->srq ? to_msrq(ibqp->srq) : NULL);
|
|
|
if (send_cq != recv_cq)
|