diff options
Diffstat (limited to 'datapath/linux/compat/include/net/ip_tunnels.h')
-rw-r--r-- | datapath/linux/compat/include/net/ip_tunnels.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/datapath/linux/compat/include/net/ip_tunnels.h b/datapath/linux/compat/include/net/ip_tunnels.h index 9afab8cbb..d03be7564 100644 --- a/datapath/linux/compat/include/net/ip_tunnels.h +++ b/datapath/linux/compat/include/net/ip_tunnels.h @@ -3,14 +3,15 @@ #include <linux/version.h> #if defined(HAVE_GRE_HANDLE_OFFLOADS) && \ - LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) + LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) && \ + defined(HAVE_VXLAN_XMIT_SKB) /* RHEL6 and RHEL7 both has backported tunnel API but RHEL6 has * older version, so avoid using RHEL6 backports. */ -#define GRE_USE_KERNEL_GRE_HANDLE_OFFLOADS +#define USE_KERNEL_TUNNEL_API #endif -#ifdef GRE_USE_KERNEL_GRE_HANDLE_OFFLOADS +#ifdef USE_KERNEL_TUNNEL_API #include_next <net/ip_tunnels.h> #if LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0) |