Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a049e51 authored by Patrick Marchand Latifi's avatar Patrick Marchand Latifi Committed by Roland Dreier
Browse files

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: default avatarPatrick Marchand Latifi <patrick.latifi@qlogic.com>
Acked-by: default avatarRalph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 4cd5060c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.opcode = IB_WC_RECV;
		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;