From patchwork Sun Dec 19 09:28:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksey Senin X-Patchwork-Id: 418641 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 oBJ9TBuO024359 for ; Sun, 19 Dec 2010 09:29:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751715Ab0LSJ3F (ORCPT ); Sun, 19 Dec 2010 04:29:05 -0500 Received: from fwil.voltaire.com ([193.47.165.2]:42271 "EHLO Exil2010.voltaire.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751461Ab0LSJ3E (ORCPT ); Sun, 19 Dec 2010 04:29:04 -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; Sun, 19 Dec 2010 11:28:58 +0200 Received: from [172.25.5.190] ([172.25.5.190]) by exil.voltaire.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 19 Dec 2010 11:28:58 +0200 Message-ID: <4D0DD05A.2090600@voltaire.com> Date: Sun, 19 Dec 2010 11:28:58 +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: Vladimir Sokolovsky , Subject: [PATCH] libibvers: Add new enums X-OriginalArrivalTime: 19 Dec 2010 09:28:58.0214 (UTC) FILETIME=[29CC1060:01CB9F5F] 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]); Sun, 19 Dec 2010 09:29:11 +0000 (UTC) diff --git a/fixes/series b/fixes/series index e3fa53a..e64de3d 100644 --- a/fixes/series +++ b/fixes/series @@ -12,3 +12,4 @@ configure_in-AC_PROG_LIBTOOL-for-automake.patch rpm_spec_changelog_fix.patch iboe_adapt_new_api.patch support_gid_change.patch +verbs_enum_flags.patch diff --git a/fixes/verbs_enum_flags.patch b/fixes/verbs_enum_flags.patch new file mode 100644 index 0000000..dac26b2 --- /dev/null +++ b/fixes/verbs_enum_flags.patch @@ -0,0 +1,43 @@ +From e9a0d91fdb1ece1d4605f2fbbcf79cc85f59deda Mon Sep 17 00:00:00 2001 +From: Aleksey Senin +Date: Sun, 19 Dec 2010 10:54:52 +0200 +Subject: [PATCH] New enum flags + +IBV_SEND_IP_CSUM added to ibv_send_flags. Should be used to control +caclulation checksum at hardware layer. + +IBV_WC_WITH_VLAN added to ibv_wc_flags, Should be used to add VLAN +support to WC flags. + +Signed-off-by: Aleksey Senin +--- + include/infiniband/verbs.h | 6 ++++-- + 1 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/include/infiniband/verbs.h b/include/infiniband/verbs.h +index 0f1cb2e..d6b807b 100644 +--- a/include/infiniband/verbs.h ++++ b/include/infiniband/verbs.h +@@ -257,7 +257,8 @@ enum ibv_wc_opcode { + + enum ibv_wc_flags { + IBV_WC_GRH = 1 << 0, +- IBV_WC_WITH_IMM = 1 << 1 ++ IBV_WC_WITH_IMM = 1 << 1, ++ IBV_WC_WITH_VLAN = 1 << 3 + }; + + struct ibv_wc { +@@ -493,7 +494,8 @@ enum ibv_send_flags { + IBV_SEND_FENCE = 1 << 0, + IBV_SEND_SIGNALED = 1 << 1, + IBV_SEND_SOLICITED = 1 << 2, +- IBV_SEND_INLINE = 1 << 3 ++ IBV_SEND_INLINE = 1 << 3, ++ IBV_SEND_IP_CSUM = 1 << 4 + }; + + struct ibv_sge { +-- +1.6.4.2 +