diff mbox

libibvers: Add new enums

Message ID 4D0DD05A.2090600@voltaire.com (mailing list archive)
State New, archived
Headers show

Commit Message

Aleksey Senin Dec. 19, 2010, 9:28 a.m. UTC
None
diff mbox

Patch

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 <alekseys@voltaire.com>
+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 <alekseys@voltaire.com>
+---
+ 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
+