File vlan_apichange.patch of Package openvswitch

Index: openvswitch-1.11.0/datapath/vlan.h
===================================================================
--- openvswitch-1.11.0.orig/datapath/vlan.h
+++ openvswitch-1.11.0/datapath/vlan.h
@@ -62,6 +62,11 @@ static inline u16 vlan_get_tci(struct sk
 	return skb->vlan_tci;
 }
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
+#define __vlan_hwaccel_put_tag(x,y) __vlan_hwaccel_put_tag(x, htons(ETH_P_8021Q), y)
+#define NETIF_F_HW_VLAN_TX NETIF_F_HW_VLAN_CTAG_TX_BIT
+#endif
+
 static inline void vlan_set_tci(struct sk_buff *skb, u16 vlan_tci)
 {
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)
Index: openvswitch-1.11.0/datapath/datapath.c
===================================================================
--- openvswitch-1.11.0.orig/datapath/datapath.c
+++ openvswitch-1.11.0/datapath/datapath.c
@@ -62,8 +62,8 @@
 #include "vport-internal_dev.h"
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18) || \
-    LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0)
-#error Kernels before 2.6.18 or after 3.8 are not supported by this version of Open vSwitch.
+    LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0)
+#error Kernels before 2.6.18 or after 3.12 are not supported by this version of Open vSwitch.
 #endif
 
 #define REHASH_FLOW_INTERVAL (10 * 60 * HZ)
openSUSE Build Service is sponsored by