compat: skbuff: Remove references to old kernels.
authorJoe Stringer <joe@ovn.org>
Fri, 29 Apr 2016 01:09:04 +0000 (18:09 -0700)
committerJoe Stringer <joe@ovn.org>
Mon, 2 May 2016 19:55:07 +0000 (12:55 -0700)
Since commit f2ab1536ddbc ("compat: Backport conntrack strictly to
v3.10+."), we haven't supported these kernel versions. Remove the old
code.

Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Simon Horman <simon.horman@netronome.com>
datapath/linux/compat/skbuff-openvswitch.c

index c46798d..5c32f81 100644 (file)
@@ -23,11 +23,7 @@ void __skb_warn_lro_forwarding(const struct sk_buff *skb)
 
 static inline bool head_frag(const struct sk_buff *skb)
 {
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
        return skb->head_frag;
-#else
-       return false;
-#endif
 }
 
  /**
@@ -296,9 +292,7 @@ void rpl_skb_scrub_packet(struct sk_buff *skb, bool xnet)
 {
        skb->tstamp.tv64 = 0;
        skb->pkt_type = PACKET_HOST;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39)
        skb->skb_iif = 0;
-#endif
        skb->ignore_df = 0;
        skb_dst_drop(skb);
        secpath_reset(skb);