From a526bcdf8076543d6530f5978b4ab6d9a7f97623 Mon Sep 17 00:00:00 2001 From: Pravin B Shelar Date: Fri, 6 Dec 2013 10:43:12 -0800 Subject: [PATCH] datapath: compat: Fix Compiler error for kernel 3.3 to 3.8 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 Acked-by: Jesse Gross --- datapath/linux/compat/include/net/flow_keys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datapath/linux/compat/include/net/flow_keys.h b/datapath/linux/compat/include/net/flow_keys.h index 4de17d12f..766b4b376 100644 --- a/datapath/linux/compat/include/net/flow_keys.h +++ b/datapath/linux/compat/include/net/flow_keys.h @@ -3,7 +3,7 @@ #include -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0) #include_next #else struct flow_keys { -- 2.20.1