diff options
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index bf221d65d9ad..24cfa626931e 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -388,10 +388,7 @@ struct sk_buff { | |||
388 | kmemcheck_bitfield_begin(flags2); | 388 | kmemcheck_bitfield_begin(flags2); |
389 | __u16 queue_mapping:16; | 389 | __u16 queue_mapping:16; |
390 | #ifdef CONFIG_IPV6_NDISC_NODETYPE | 390 | #ifdef CONFIG_IPV6_NDISC_NODETYPE |
391 | __u8 ndisc_nodetype:2, | 391 | __u8 ndisc_nodetype:2; |
392 | deliver_no_wcard:1; | ||
393 | #else | ||
394 | __u8 deliver_no_wcard:1; | ||
395 | #endif | 392 | #endif |
396 | __u8 ooo_okay:1; | 393 | __u8 ooo_okay:1; |
397 | kmemcheck_bitfield_end(flags2); | 394 | kmemcheck_bitfield_end(flags2); |
@@ -1801,6 +1798,15 @@ static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len) | |||
1801 | prefetch(skb->prev), (skb != (struct sk_buff *)(queue)); \ | 1798 | prefetch(skb->prev), (skb != (struct sk_buff *)(queue)); \ |
1802 | skb = skb->prev) | 1799 | skb = skb->prev) |
1803 | 1800 | ||
1801 | #define skb_queue_reverse_walk_safe(queue, skb, tmp) \ | ||
1802 | for (skb = (queue)->prev, tmp = skb->prev; \ | ||
1803 | skb != (struct sk_buff *)(queue); \ | ||
1804 | skb = tmp, tmp = skb->prev) | ||
1805 | |||
1806 | #define skb_queue_reverse_walk_from_safe(queue, skb, tmp) \ | ||
1807 | for (tmp = skb->prev; \ | ||
1808 | skb != (struct sk_buff *)(queue); \ | ||
1809 | skb = tmp, tmp = skb->prev) | ||
1804 | 1810 | ||
1805 | static inline bool skb_has_frag_list(const struct sk_buff *skb) | 1811 | static inline bool skb_has_frag_list(const struct sk_buff *skb) |
1806 | { | 1812 | { |
@@ -1868,7 +1874,7 @@ extern void skb_split(struct sk_buff *skb, | |||
1868 | extern int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, | 1874 | extern int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, |
1869 | int shiftlen); | 1875 | int shiftlen); |
1870 | 1876 | ||
1871 | extern struct sk_buff *skb_segment(struct sk_buff *skb, int features); | 1877 | extern struct sk_buff *skb_segment(struct sk_buff *skb, u32 features); |
1872 | 1878 | ||
1873 | static inline void *skb_header_pointer(const struct sk_buff *skb, int offset, | 1879 | static inline void *skb_header_pointer(const struct sk_buff *skb, int offset, |
1874 | int len, void *buffer) | 1880 | int len, void *buffer) |