diff mbox

[IB/QIB] Process RDMA WRITE ONLY with IMMEDIATE properly

Message ID 35AAF1E4A771E142979F27B51793A488873ABE0771@AVEXMB1.qlogic.org (mailing list archive)
State Superseded
Headers show

Commit Message

Ralph Campbell Oct. 22, 2010, 10:14 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/infiniband/hw/qib/qib_rc.c b/drivers/infiniband/hw/qib/qib_rc.c
index 40c0a37..8d87ce3 100644
--- a/drivers/infiniband/hw/qib/qib_rc.c
+++ b/drivers/infiniband/hw/qib/qib_rc.c
@@ -2076,7 +2076,12 @@  send_last:
                        goto nack_op_err;
                if (!ret)
                        goto rnr_nak;
-               goto send_last_imm;
+
+               wc.ex.imm_data = ohdr->u.rc.imm_data;
+               hdrsize += 4;
+               wc.wc_flags = IB_WC_WITH_IMM;
+
+               goto send_last;

        case OP(RDMA_READ_REQUEST): {
                struct qib_ack_entry *e;