diff options
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index cf2cb50f77d1..08670d017479 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -1687,8 +1687,6 @@ extern int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, | |||
1687 | int shiftlen); | 1687 | int shiftlen); |
1688 | 1688 | ||
1689 | extern struct sk_buff *skb_segment(struct sk_buff *skb, int features); | 1689 | extern struct sk_buff *skb_segment(struct sk_buff *skb, int features); |
1690 | extern int skb_gro_receive(struct sk_buff **head, | ||
1691 | struct sk_buff *skb); | ||
1692 | 1690 | ||
1693 | static inline void *skb_header_pointer(const struct sk_buff *skb, int offset, | 1691 | static inline void *skb_header_pointer(const struct sk_buff *skb, int offset, |
1694 | int len, void *buffer) | 1692 | int len, void *buffer) |
@@ -1904,6 +1902,21 @@ static inline void skb_copy_queue_mapping(struct sk_buff *to, const struct sk_bu | |||
1904 | to->queue_mapping = from->queue_mapping; | 1902 | to->queue_mapping = from->queue_mapping; |
1905 | } | 1903 | } |
1906 | 1904 | ||
1905 | static inline void skb_record_rx_queue(struct sk_buff *skb, u16 rx_queue) | ||
1906 | { | ||
1907 | skb->queue_mapping = rx_queue + 1; | ||
1908 | } | ||
1909 | |||
1910 | static inline u16 skb_get_rx_queue(struct sk_buff *skb) | ||
1911 | { | ||
1912 | return skb->queue_mapping - 1; | ||
1913 | } | ||
1914 | |||
1915 | static inline bool skb_rx_queue_recorded(struct sk_buff *skb) | ||
1916 | { | ||
1917 | return (skb->queue_mapping != 0); | ||
1918 | } | ||
1919 | |||
1907 | #ifdef CONFIG_XFRM | 1920 | #ifdef CONFIG_XFRM |
1908 | static inline struct sec_path *skb_sec_path(struct sk_buff *skb) | 1921 | static inline struct sec_path *skb_sec_path(struct sk_buff *skb) |
1909 | { | 1922 | { |