diff options
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index d4d7c666ca63..a3ae3c525833 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -324,7 +324,6 @@ struct sk_buff { | |||
324 | 324 | ||
325 | union { | 325 | union { |
326 | struct dst_entry *dst; | 326 | struct dst_entry *dst; |
327 | struct rtable *rtable; | ||
328 | unsigned long _skb_dst; | 327 | unsigned long _skb_dst; |
329 | }; | 328 | }; |
330 | #ifdef CONFIG_XFRM | 329 | #ifdef CONFIG_XFRM |
@@ -427,6 +426,11 @@ extern void skb_dma_unmap(struct device *dev, struct sk_buff *skb, | |||
427 | enum dma_data_direction dir); | 426 | enum dma_data_direction dir); |
428 | #endif | 427 | #endif |
429 | 428 | ||
429 | static inline struct rtable *skb_rtable(const struct sk_buff *skb) | ||
430 | { | ||
431 | return (struct rtable *)skb->_skb_dst; | ||
432 | } | ||
433 | |||
430 | extern void kfree_skb(struct sk_buff *skb); | 434 | extern void kfree_skb(struct sk_buff *skb); |
431 | extern void consume_skb(struct sk_buff *skb); | 435 | extern void consume_skb(struct sk_buff *skb); |
432 | extern void __kfree_skb(struct sk_buff *skb); | 436 | extern void __kfree_skb(struct sk_buff *skb); |