X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Flinux%2Fcompat%2Fip_tunnels_core.c;h=d650be2909f25d21e28d2a282d9f844be2bd3157;hb=e2f3178f0582eda302bdc5629189b6a56d9fbcdd;hp=66d5e02523f66356a79d76dad371a5519ba32cbe;hpb=2b897011eeb4a0b06fc555009b2b3e138b809a0d;p=sliver-openvswitch.git diff --git a/datapath/linux/compat/ip_tunnels_core.c b/datapath/linux/compat/ip_tunnels_core.c index 66d5e0252..d650be290 100644 --- a/datapath/linux/compat/ip_tunnels_core.c +++ b/datapath/linux/compat/ip_tunnels_core.c @@ -16,6 +16,9 @@ * 02110-1301, USA */ +#include +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,12,0) + #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include @@ -37,7 +40,7 @@ int iptunnel_xmit(struct rtable *rt, struct sk_buff *skb, __be32 src, __be32 dst, __u8 proto, - __u8 tos, __u8 ttl, __be16 df) + __u8 tos, __u8 ttl, __be16 df, bool xnet) { int pkt_len = skb->len; struct iphdr *iph; @@ -45,7 +48,7 @@ int iptunnel_xmit(struct rtable *rt, nf_reset(skb); secpath_reset(skb); - skb_clear_rxhash(skb); + skb_clear_hash(skb); skb_dst_drop(skb); skb_dst_set(skb, &rt_dst(rt)); #if 0 @@ -101,10 +104,12 @@ int iptunnel_pull_header(struct sk_buff *skb, int hdr_len, __be16 inner_proto) nf_reset(skb); secpath_reset(skb); - skb_clear_rxhash(skb); + skb_clear_hash(skb); skb_dst_drop(skb); vlan_set_tci(skb, 0); skb_set_queue_mapping(skb, 0); skb->pkt_type = PACKET_HOST; return 0; } + +#endif /* 3.12 */