File datapath-iptunnel_xmit.patch of Package openvswitch.2686

Index: datapath/linux/compat/include/net/ip_tunnels.h
===================================================================
--- datapath/linux/compat/include/net/ip_tunnels.h.orig
+++ datapath/linux/compat/include/net/ip_tunnels.h
@@ -13,6 +13,18 @@
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)
 #include_next <net/ip_tunnels.h>
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,45)
+static inline int rpl_iptunnel_xmit(struct rtable *rt,
+                                    struct sk_buff *skb, __be32 src,
+                                    __be32 dst, __u8 proto, __u8 tos,
+                                    __u8 ttl, __be16 df, bool xnet)
+{
+    return iptunnel_xmit(NULL, rt, skb, src, dst, proto, tos, ttl, df, xnet);
+}
+#define iptunnel_xmit rpl_iptunnel_xmit
+#endif
+
 #else
 
 #define TUNNEL_CSUM	__cpu_to_be16(0x01)
openSUSE Build Service is sponsored by