From 9cbd4a4ee098426aef07fb20cc322416e293884f Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Mon, 17 May 2010 13:57:29 -0700 Subject: [PATCH] Don't define "skb_dst_drop" if other skb_dst accessor funcs are defined When "skb_dst" is included in the kernel sources, don't redefine "skb_dst_drop", which is defined in dst.h. --- datapath/linux-2.6/compat-2.6/include/net/dst.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/datapath/linux-2.6/compat-2.6/include/net/dst.h b/datapath/linux-2.6/compat-2.6/include/net/dst.h index edb0f75e4..e51ac1d69 100644 --- a/datapath/linux-2.6/compat-2.6/include/net/dst.h +++ b/datapath/linux-2.6/compat-2.6/include/net/dst.h @@ -3,8 +3,7 @@ #include_next -#include -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31) +#ifndef HAVE_SKB_DST_ACCESSOR_FUNCS static inline void skb_dst_drop(struct sk_buff *skb) { @@ -13,6 +12,6 @@ static inline void skb_dst_drop(struct sk_buff *skb) skb->dst = 0UL; } -#endif /* linux kernel < 2.6.31 */ +#endif #endif -- 2.43.0