Преглед изворни кода

IB/ipath: Fix error completion put on send CQ instead of recv CQ

A work completion entry could be placed on the wrong completion
queue when an RC QP is placed in the error state.

Signed-off-by: Patrick Marchand Latifi <patrick.latifi@qlogic.com>
Acked-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Patrick Marchand Latifi пре 17 година
родитељ
комит
2a049e514b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      drivers/infiniband/hw/ipath/ipath_qp.c

+ 1 - 1
drivers/infiniband/hw/ipath/ipath_qp.c

@@ -415,7 +415,7 @@ int ipath_error_qp(struct ipath_qp *qp, enum ib_wc_status err)
 		wc.wr_id = qp->r_wr_id;
 		wc.wr_id = qp->r_wr_id;
 		wc.opcode = IB_WC_RECV;
 		wc.opcode = IB_WC_RECV;
 		wc.status = err;
 		wc.status = err;
-		ipath_cq_enter(to_icq(qp->ibqp.send_cq), &wc, 1);
+		ipath_cq_enter(to_icq(qp->ibqp.recv_cq), &wc, 1);
 	}
 	}
 	wc.status = IB_WC_WR_FLUSH_ERR;
 	wc.status = IB_WC_WR_FLUSH_ERR;