From patchwork Mon Dec 6 07:34:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksey Senin X-Patchwork-Id: 377242 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 oB67Wo5k026043 for ; Mon, 6 Dec 2010 07:35:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751222Ab0LFHfN (ORCPT ); Mon, 6 Dec 2010 02:35:13 -0500 Received: from fwil.voltaire.com ([193.47.165.2]:31879 "EHLO Exil2010.voltaire.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750990Ab0LFHfN (ORCPT ); Mon, 6 Dec 2010 02:35:13 -0500 Received: from exil.voltaire.com (172.25.0.55) by Exil2010.voltaire.com (172.25.0.11) with Microsoft SMTP Server id 14.1.255.0; Mon, 6 Dec 2010 09:35:11 +0200 Received: from [172.25.5.190] ([172.25.5.190]) by exil.voltaire.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 6 Dec 2010 09:34:52 +0200 Message-ID: <4CFC921D.3000907@voltaire.com> Date: Mon, 6 Dec 2010 09:34:53 +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: Roland Dreier CC: , Moni Shoua , Nir Muchtar , Or Gerlitz Subject: [PATCH v3 1/4] RAW_PACKET QP type definition References: <4CFC918D.1090708@voltaire.com> In-Reply-To: <4CFC918D.1090708@voltaire.com> X-OriginalArrivalTime: 06 Dec 2010 07:34:52.0965 (UTC) FILETIME=[12573550:01CB9518] 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]); Mon, 06 Dec 2010 07:35:14 +0000 (UTC) diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c index af7a8b0..611c13c 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 }, @@ -337,6 +337,7 @@ static const struct { [IB_QPT_UD] = (IB_QP_PKEY_INDEX | IB_QP_PORT | IB_QP_QKEY), + [IB_QPT_RAW_PACKET] = IB_QP_PORT, [IB_QPT_UC] = (IB_QP_PKEY_INDEX | IB_QP_PORT | IB_QP_ACCESS_FLAGS), diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index e04c488..e14e3f8 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -561,7 +561,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 {