datapath: Add backport for iptunnel_xmit.
authorPravin B Shelar <pshelar@nicira.com>
Tue, 7 Oct 2014 14:33:52 +0000 (07:33 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Tue, 7 Oct 2014 23:13:16 +0000 (16:13 -0700)
Missed during backport of "datapath: Add support for RHEL-7 /
CentOS-7 kernel."

Reported-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
datapath/linux/compat/include/net/ip_tunnels.h

index 130c2d6..4e406ef 100644 (file)
 
 #ifdef GRE_USE_KERNEL_GRE_HANDLE_OFFLOADS
 #include_next <net/ip_tunnels.h>
+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)
+{
+#ifdef HAVE_IPTUNNEL_XMIT_NET
+       return iptunnel_xmit(NULL, rt, skb, src, dst, proto, tos, ttl, df);
+#else
+       return iptunnel_xmit(rt, skb, src, dst, proto, tos, ttl, df, xnet);
+#endif
+}
+#define iptunnel_xmit rpl_iptunnel_xmit
+
 #else
 
 #include <linux/if_tunnel.h>