[ovs-dev] [PATCH] datapath: compat: Fix Compiler error for kernel 3.3 to 3.8

Pravin B Shelar pshelar at nicira.com
Fri Dec 6 18:43:12 UTC 2013


Kernel 3.3 to 3.8 has defined `struct flow_keys` but does not
contains flow_keys.thoff field.  Therefore we need to use
compat definition for flow_keys struct.

Signed-off-by: Pravin B Shelar <pshelar at nicira.com>
---
 datapath/linux/compat/include/net/flow_keys.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/datapath/linux/compat/include/net/flow_keys.h b/datapath/linux/compat/include/net/flow_keys.h
index 4de17d1..766b4b3 100644
--- a/datapath/linux/compat/include/net/flow_keys.h
+++ b/datapath/linux/compat/include/net/flow_keys.h
@@ -3,7 +3,7 @@
 
 #include <linux/version.h>
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0)
 #include_next <net/flow_keys.h>
 #else
 struct flow_keys {
-- 
1.7.1




More information about the dev mailing list