]>
Commit | Line | Data |
---|---|---|
db12f2fc JG |
1 | #ifndef __NET_DST_WRAPPER_H |
2 | #define __NET_DST_WRAPPER_H 1 | |
3 | ||
4 | #include_next <net/dst.h> | |
5 | ||
9cbd4a4e | 6 | #ifndef HAVE_SKB_DST_ACCESSOR_FUNCS |
db12f2fc JG |
7 | |
8 | static inline void skb_dst_drop(struct sk_buff *skb) | |
9 | { | |
10 | if (skb->dst) | |
11 | dst_release(skb_dst(skb)); | |
bbdc31bc | 12 | skb->dst = NULL; |
db12f2fc JG |
13 | } |
14 | ||
9cbd4a4e | 15 | #endif |
db12f2fc JG |
16 | |
17 | #endif |