From patchwork Fri Jul 1 13:18:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Pearson X-Patchwork-Id: 938582 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p61LTcS2014702 for ; Fri, 1 Jul 2011 21:51:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752817Ab1GAVQK (ORCPT ); Fri, 1 Jul 2011 17:16:10 -0400 Received: from cdptpa-bc-oedgelb.mail.rr.com ([75.180.133.32]:46833 "EHLO cdptpa-bc-oedgelb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751987Ab1GAVQJ (ORCPT ); Fri, 1 Jul 2011 17:16:09 -0400 Received: from cdptpa-bc-oedgelb.mail.rr.com ([10.127.134.102]) by cdptpa-bc-qmta01.mail.rr.com with ESMTP id <20110701210931162.BKQY4947@cdptpa-bc-qmta01.mail.rr.com> for ; Fri, 1 Jul 2011 21:09:31 +0000 Authentication-Results: cdptpa-bc-oedgelb.mail.rr.com smtp.user=fzago@systemfabricworks.com; auth=pass (PLAIN) X-Authority-Analysis: v=1.1 cv=QcSFu2tMqX8VyBnwf4xZriMeG3TVj1s8v1Rcea0EwGI= c=1 sm=0 a=hAzdGUM1iB0A:10 a=ozIaqLvjkoIA:10 a=DCwX0kaxZCiV3mmbfDr8nQ==:17 a=YORvzBCaAAAA:8 a=0bvZEVOFC2lFtY9_YUEA:9 a=VV2__AUApEoA:10 a=DCwX0kaxZCiV3mmbfDr8nQ==:117 X-Cloudmark-Score: 0 X-Originating-IP: 67.79.195.91 Received: from [67.79.195.91] ([67.79.195.91:49524] helo=[10.0.2.91]) by cdptpa-bc-oedge01.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTPA id 49/0C-18213-D473E0E4; Fri, 01 Jul 2011 21:08:30 +0000 Message-Id: <20110701132200.742681850@systemfabricworks.com> References: <20110701131821.928693424@systemfabricworks.com> User-Agent: quilt/0.46-1 Date: Fri, 01 Jul 2011 08:18:22 -0500 From: rpearson@systemfabricworks.com To: linux-rdma@vger.kernel.org Cc: Bob Pearson Subject: [patch 01/44] ib_pack.h Content-Disposition: inline; filename=patch1 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.6 (demeter1.kernel.org [140.211.167.41]); Fri, 01 Jul 2011 21:51:16 +0000 (UTC) Bring up to date with the current version of the IBTA spec. - add new opcodes for RC and RD - add new groups of opcodes for CN and XRC Signed-off-by: Bob Pearson --- include/rdma/ib_pack.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) Index: infiniband/include/rdma/ib_pack.h =================================================================== --- infiniband.orig/include/rdma/ib_pack.h +++ infiniband/include/rdma/ib_pack.h @@ -75,6 +75,7 @@ enum { IB_OPCODE_UC = 0x20, IB_OPCODE_RD = 0x40, IB_OPCODE_UD = 0x60, + IB_OPCODE_CN = 0x80, /* operations -- just used to define real constants */ IB_OPCODE_SEND_FIRST = 0x00, @@ -98,6 +99,10 @@ enum { IB_OPCODE_ATOMIC_ACKNOWLEDGE = 0x12, IB_OPCODE_COMPARE_SWAP = 0x13, IB_OPCODE_FETCH_ADD = 0x14, + IB_OPCODE_CNP = 0x00, + IB_OPCODE_RESYNC = 0x15, + IB_OPCODE_SEND_LAST_INV = 0x16, + IB_OPCODE_SEND_ONLY_INV = 0x17, /* real constants follow -- see comment about above IB_OPCODE() macro for more details */ @@ -124,6 +129,8 @@ enum { IB_OPCODE(RC, ATOMIC_ACKNOWLEDGE), IB_OPCODE(RC, COMPARE_SWAP), IB_OPCODE(RC, FETCH_ADD), + IB_OPCODE(RC, SEND_LAST_INV), + IB_OPCODE(RC, SEND_ONLY_INV), /* UC */ IB_OPCODE(UC, SEND_FIRST), @@ -161,10 +168,15 @@ 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) + IB_OPCODE(UD, SEND_ONLY_WITH_IMMEDIATE), + + /* CN */ + IB_OPCODE(CN, CNP), + }; enum {