We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a18e91 commit 75a4598Copy full SHA for 75a4598
drivers/infiniband/hw/mlx5/qp.c
@@ -3156,7 +3156,8 @@ static int __mlx5_ib_modify_qp(struct ib_qp *ibqp,
3156
* If we moved a kernel QP to RESET, clean up all old CQ
3157
* entries and reinitialize the QP.
3158
*/
3159
- if (new_state == IB_QPS_RESET && !ibqp->uobject) {
+ if (new_state == IB_QPS_RESET &&
3160
+ !ibqp->uobject && ibqp->qp_type != IB_QPT_XRC_TGT) {
3161
mlx5_ib_cq_clean(recv_cq, base->mqp.qpn,
3162
ibqp->srq ? to_msrq(ibqp->srq) : NULL);
3163
if (send_cq != recv_cq)
0 commit comments