aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index d2f1778877d7..a19ea43fea02 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1571,6 +1571,15 @@ static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len)
1571 skb != (struct sk_buff *)(queue); \ 1571 skb != (struct sk_buff *)(queue); \
1572 skb = tmp, tmp = skb->next) 1572 skb = tmp, tmp = skb->next)
1573 1573
1574#define skb_queue_walk_from(queue, skb) \
1575 for (; prefetch(skb->next), (skb != (struct sk_buff *)(queue)); \
1576 skb = skb->next)
1577
1578#define skb_queue_walk_from_safe(queue, skb, tmp) \
1579 for (tmp = skb->next; \
1580 skb != (struct sk_buff *)(queue); \
1581 skb = tmp, tmp = skb->next)
1582
1574#define skb_queue_reverse_walk(queue, skb) \ 1583#define skb_queue_reverse_walk(queue, skb) \
1575 for (skb = (queue)->prev; \ 1584 for (skb = (queue)->prev; \
1576 prefetch(skb->prev), (skb != (struct sk_buff *)(queue)); \ 1585 prefetch(skb->prev), (skb != (struct sk_buff *)(queue)); \