IB/ipath: Return the correct opcode for RDMA WRITE with immediate
This patch fixes a bug in the RC responder which generates a completion entry with the wrong opcode when an RDMA WRITE with immediate is received. Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
parent
b4d390d8d2
commit
2bfc8e9edf
@ -1746,6 +1746,10 @@ void ipath_rc_rcv(struct ipath_ibdev *dev, struct ipath_ib_header *hdr,
|
|||||||
qp->r_wrid_valid = 0;
|
qp->r_wrid_valid = 0;
|
||||||
wc.wr_id = qp->r_wr_id;
|
wc.wr_id = qp->r_wr_id;
|
||||||
wc.status = IB_WC_SUCCESS;
|
wc.status = IB_WC_SUCCESS;
|
||||||
|
if (opcode == OP(RDMA_WRITE_LAST_WITH_IMMEDIATE) ||
|
||||||
|
opcode == OP(RDMA_WRITE_ONLY_WITH_IMMEDIATE))
|
||||||
|
wc.opcode = IB_WC_RECV_RDMA_WITH_IMM;
|
||||||
|
else
|
||||||
wc.opcode = IB_WC_RECV;
|
wc.opcode = IB_WC_RECV;
|
||||||
wc.vendor_err = 0;
|
wc.vendor_err = 0;
|
||||||
wc.qp = &qp->ibqp;
|
wc.qp = &qp->ibqp;
|
||||||
|
Loading…
Reference in New Issue
Block a user