From patchwork Mon Aug 9 05:00:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Pearson X-Patchwork-Id: 118325 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7959Dd6012345 for ; Mon, 9 Aug 2010 05:09:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751370Ab0HIFJM (ORCPT ); Mon, 9 Aug 2010 01:09:12 -0400 Received: from cdptpa-bc-oedgelb.mail.rr.com ([75.180.133.32]:65016 "EHLO cdptpa-bc-oedgelb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751365Ab0HIFJL (ORCPT ); Mon, 9 Aug 2010 01:09:11 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 09 Aug 2010 05:09:13 +0000 (UTC) X-Greylist: delayed 512 seconds by postgrey-1.27 at vger.kernel.org; Mon, 09 Aug 2010 01:09:11 EDT Received: from cdptpa-bc-oedgelb.mail.rr.com ([10.127.134.103]) by cdptpa-bc-qmta02.mail.rr.com with ESMTP id <20100809050139661.CAXN20148@cdptpa-bc-qmta02.mail.rr.com> for ; Mon, 9 Aug 2010 05:01:39 +0000 Authentication-Results: cdptpa-bc-oedgelb.mail.rr.com smtp.user=rpearson@systemfabricworks.com; auth=pass (LOGIN) X-Authority-Analysis: v=1.1 cv=FhVJmHC1w1kDjOBm8oSJBwQdsDl33brm3ao/c/PsX0s= c=1 sm=0 a=RrXOi_lfKm4A:10 a=kj9zAlcOel0A:10 a=3PU0zAfWxDhasYxo5qZdrw==:17 a=YORvzBCaAAAA:8 a=imbFb00EBThgXfaAEc0A:9 a=CRVBDRrstz7XTFbf9SjE9BKjHzgA:4 a=CjuIK1q_8ugA:10 a=VV2__AUApEoA:10 a=3PU0zAfWxDhasYxo5qZdrw==:117 X-Cloudmark-Score: 0 X-Originating-IP: 67.78.114.42 Received: from [67.78.114.42] ([67.78.114.42:4401] helo=BOBP) by cdptpa-bc-oedge02.mail.rr.com (envelope-from ) (ecelerity 2.2.2.39 r()) with ESMTPA id 13/3F-24428-47B8F5C4; Mon, 09 Aug 2010 05:00:38 +0000 From: "Robert Pearson" To: Subject: [PATCH] rdma/ib_pack.h: add new bth opcodes Date: Mon, 9 Aug 2010 00:00:24 -0500 Message-ID: <009e01cb377f$cc2bfc00$6483f400$@com> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acs3f8WmEjYjSNzVRI6YQlusSri/0w== Content-Language: en-us x-cr-hashedpuzzle: A7Nd BjIW CIpf CboK EBlG EENM FHDE FQky FUK3 FtE5 F0jx GHP2 GV5h Ighf Iy03 Izlj; 1; bABpAG4AdQB4AC0AcgBkAG0AYQBAAHYAZwBlAHIALgBrAGUAcgBuAGUAbAAuAG8AcgBnAA==; Sosha1_v1; 7; {BBC3DAA7-1077-4822-B5B5-D4B730DEECD8}; cgBwAGUAYQByAHMAbwBuAEAAcwB5AHMAdABlAG0AZgBhAGIAcgBpAGMAdwBvAHIAawBzAC4AYwBvAG0A; Mon, 09 Aug 2010 05:00:22 GMT; WwBQAEEAVABDAEgAXQAgAHIAZABtAGEALwBpAGIAXwBwAGEAYwBrAC4AaAA6ACAAYQBkAGQAIABuAGUAdwAgAGIAdABoACAAbwBwAGMAbwBkAGUAcwA= x-cr-puzzleid: {BBC3DAA7-1077-4822-B5B5-D4B730DEECD8} Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/include/rdma/ib_pack.h b/include/rdma/ib_pack.h index cbb50f4..42b43d4 100644 --- a/include/rdma/ib_pack.h +++ b/include/rdma/ib_pack.h @@ -73,8 +73,11 @@ enum { IB_OPCODE_UC = 0x20, IB_OPCODE_RD = 0x40, IB_OPCODE_UD = 0x60, + IB_OPCODE_CN = 0x80, + IB_OPCODE_XRC = 0xA0, /* operations -- just used to define real constants */ + IB_OPCODE_CNP = 0x00, IB_OPCODE_SEND_FIRST = 0x00, IB_OPCODE_SEND_MIDDLE = 0x01, IB_OPCODE_SEND_LAST = 0x02, @@ -96,6 +99,9 @@ enum { IB_OPCODE_ATOMIC_ACKNOWLEDGE = 0x12, IB_OPCODE_COMPARE_SWAP = 0x13, IB_OPCODE_FETCH_ADD = 0x14, + IB_OPCODE_RESYNC = 0x15, + IB_OPCODE_SEND_LAST_WITH_INVALIDATE = 0x16, + IB_OPCODE_SEND_ONLY_WITH_INVALIDATE = 0x17, /* real constants follow -- see comment about above IB_OPCODE() macro for more details */ @@ -122,6 +128,8 @@ enum { IB_OPCODE(RC, ATOMIC_ACKNOWLEDGE), IB_OPCODE(RC, COMPARE_SWAP), IB_OPCODE(RC, FETCH_ADD), + IB_OPCODE(RC, SEND_LAST_WITH_INVALIDATE), + IB_OPCODE(RC, SEND_ONLY_WITH_INVALIDATE), /* UC */ IB_OPCODE(UC, SEND_FIRST), @@ -159,10 +167,39 @@ enum { IB_OPCODE(RD, ATOMIC_ACKNOWLEDGE), IB_OPCODE(RD, COMPARE_SWAP), IB_OPCODE(RD, FETCH_ADD), + IB_OPCODE(RD, RESYNC), /* UD */ IB_OPCODE(UD, SEND_ONLY), IB_OPCODE(UD, SEND_ONLY_WITH_IMMEDIATE) + + /* CN */ + IB_OPCODE(CN, CNP), + + /* XRC */ + IB_OPCODE(XRC, SEND_FIRST), + IB_OPCODE(XRC, SEND_MIDDLE), + IB_OPCODE(XRC, SEND_LAST), + IB_OPCODE(XRC, SEND_LAST_WITH_IMMEDIATE), + IB_OPCODE(XRC, SEND_ONLY), + IB_OPCODE(XRC, SEND_ONLY_WITH_IMMEDIATE), + IB_OPCODE(XRC, RDMA_WRITE_FIRST), + IB_OPCODE(XRC, RDMA_WRITE_MIDDLE), + IB_OPCODE(XRC, RDMA_WRITE_LAST), + IB_OPCODE(XRC, RDMA_WRITE_LAST_WITH_IMMEDIATE), + IB_OPCODE(XRC, RDMA_WRITE_ONLY), + IB_OPCODE(XRC, RDMA_WRITE_ONLY_WITH_IMMEDIATE), + IB_OPCODE(XRC, RDMA_READ_REQUEST), + IB_OPCODE(XRC, RDMA_READ_RESPONSE_FIRST), + IB_OPCODE(XRC, RDMA_READ_RESPONSE_MIDDLE), + IB_OPCODE(XRC, RDMA_READ_RESPONSE_LAST), + IB_OPCODE(XRC, RDMA_READ_RESPONSE_ONLY), + IB_OPCODE(XRC, ACKNOWLEDGE), + IB_OPCODE(XRC, ATOMIC_ACKNOWLEDGE), + IB_OPCODE(XRC, COMPARE_SWAP), + IB_OPCODE(XRC, FETCH_ADD), + IB_OPCODE(XRC, SEND_LAST_WITH_INVALIDATE), + IB_OPCODE(XRC, SEND_ONLY_WITH_INVALIDATE), }; enum {