f481a9d3f181f6598f7dc1932d7b4b091627cddd
[sliver-openvswitch.git] / datapath / linux-2.6 / compat-2.6 / include / net / dst.h
1 #ifndef __NET_DST_WRAPPER_H
2 #define __NET_DST_WRAPPER_H 1
3
4 #include_next <net/dst.h>
5
6 #ifndef HAVE_SKB_DST_ACCESSOR_FUNCS
7
8 static inline void skb_dst_drop(struct sk_buff *skb)
9 {
10         if (skb->dst)
11                 dst_release(skb_dst(skb));
12         skb->dst = NULL;
13 }
14
15 #endif
16
17 #endif