summaryrefslogtreecommitdiff
path: root/datapath
diff options
context:
space:
mode:
authorJoe Stringer <joe@ovn.org>2015-12-24 11:41:40 -0800
committerJoe Stringer <joe@ovn.org>2016-02-02 14:26:46 -0800
commit1dba1690372b0b27906276d8372a0c1b030dc77e (patch)
tree237e259276b65b07eef0ca9d393d3601bf3fa05a /datapath
parent459064e7a0a0b8d3ad8a9b8cd57562d3fa750d4f (diff)
downloadopenvswitch-1dba1690372b0b27906276d8372a0c1b030dc77e.tar.gz
compat: Detect and use __skb_dst_copy().
Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Pravin B Shelar <pshelar@ovn.org>
Diffstat (limited to 'datapath')
-rw-r--r--datapath/linux/compat/include/net/dst.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath/linux/compat/include/net/dst.h b/datapath/linux/compat/include/net/dst.h
index de74c9383..5ec3d307b 100644
--- a/datapath/linux/compat/include/net/dst.h
+++ b/datapath/linux/compat/include/net/dst.h
@@ -42,7 +42,7 @@ static inline void skb_dst_set_noref(struct sk_buff *skb,
struct dst_entry *dst) { }
static inline void dst_init_metrics(struct dst_entry *dst, const u32 *metrics,
bool read_only) { }
-#elif LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0)
+#elif !defined(HAVE___SKB_DST_COPY)
static inline void __skb_dst_copy(struct sk_buff *nskb, unsigned long refdst)
{
nskb->_skb_refdst = refdst;