From patchwork Wed Nov 3 14:33:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksey Senin X-Patchwork-Id: 298952 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 oA3EUJHc021230 for ; Wed, 3 Nov 2010 14:33:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755277Ab0KCOdq (ORCPT ); Wed, 3 Nov 2010 10:33:46 -0400 Received: from fwil.voltaire.com ([193.47.165.2]:56667 "EHLO exil.voltaire.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755121Ab0KCOdp (ORCPT ); Wed, 3 Nov 2010 10:33:45 -0400 Received: from [172.25.5.190] ([172.25.5.190]) by exil.voltaire.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 3 Nov 2010 16:33:43 +0200 Message-ID: <4CD172C8.4010700@voltaire.com> Date: Wed, 03 Nov 2010 16:33:44 +0200 From: Aleksey Senin User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 MIME-Version: 1.0 To: linux-rdma@vger.kernel.org CC: Roland Dreier , Moni Shoua , Alex Rosenbaum Subject: [PATCH V2 1/3] RAW_PACKET QP type definition References: <4CD171F0.8020506@voltaire.com> In-Reply-To: <4CD171F0.8020506@voltaire.com> X-OriginalArrivalTime: 03 Nov 2010 14:33:44.0009 (UTC) FILETIME=[1DFA7390:01CB7B64] 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]); Wed, 03 Nov 2010 14:33:46 +0000 (UTC) diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c index af7a8b0..b04b419 100644 --- a/drivers/infiniband/core/verbs.c +++ b/drivers/infiniband/core/verbs.c @@ -326,8 +326,8 @@ EXPORT_SYMBOL(ib_create_qp); static const struct { int valid; - enum ib_qp_attr_mask req_param[IB_QPT_RAW_ETHERTYPE + 1]; - enum ib_qp_attr_mask opt_param[IB_QPT_RAW_ETHERTYPE + 1]; + enum ib_qp_attr_mask req_param[IB_QPT_RAW_PACKET + 1]; + enum ib_qp_attr_mask opt_param[IB_QPT_RAW_PACKET + 1]; } qp_state_table[IB_QPS_ERR + 1][IB_QPS_ERR + 1] = { [IB_QPS_RESET] = { [IB_QPS_RESET] = { .valid = 1 }, diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index ecf098a..555165b 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -562,7 +562,8 @@ enum ib_qp_type { IB_QPT_UC, IB_QPT_UD, IB_QPT_RAW_IPV6, - IB_QPT_RAW_ETHERTYPE + IB_QPT_RAW_ETHERTYPE = 7, + IB_QPT_RAW_PACKET = 8 }; enum ib_qp_create_flags {