From patchwork Fri Oct 22 22:14:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Campbell X-Patchwork-Id: 278141 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9MMIhdq032336 for ; Fri, 22 Oct 2010 22:18:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753289Ab0JVWSm (ORCPT ); Fri, 22 Oct 2010 18:18:42 -0400 Received: from avexcashub1.qlogic.com ([198.70.193.61]:6965 "EHLO avexcashub1.qlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752863Ab0JVWSm convert rfc822-to-8bit (ORCPT ); Fri, 22 Oct 2010 18:18:42 -0400 Received: from avexmb1.qlogic.org ([fe80::9545:3a4f:c131:467d]) by avexcashub1.qlogic.org ([::1]) with mapi; Fri, 22 Oct 2010 15:18:41 -0700 From: Ralph Campbell To: Jason Gunthorpe , RDMA list Date: Fri, 22 Oct 2010 15:14:13 -0700 Subject: RE: [PATCH] [IB/QIB] Process RDMA WRITE ONLY with IMMEDIATE properly Thread-Topic: [PATCH] [IB/QIB] Process RDMA WRITE ONLY with IMMEDIATE properly Thread-Index: ActyNJlaoFVv1H4lTya0Zc4iYzB8mQAAdyBn Message-ID: <35AAF1E4A771E142979F27B51793A488873ABE0771@AVEXMB1.qlogic.org> References: <20101022220048.GA1998@obsidianresearch.com> In-Reply-To: <20101022220048.GA1998@obsidianresearch.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 22 Oct 2010 22:18:43 +0000 (UTC) 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;