aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-05-22 20:35:29 -0400
committerDavid S. Miller <davem@davemloft.net>2011-05-22 20:35:29 -0400
commit0fcbe742eaac14bd5032b369c09e9d94be9058ad (patch)
treec1a113525e4bb404065236f1c83e7c7952df5bb9 /include/linux/skbuff.h
parent69c867c90c7fe0773d9aa4e8bbf777f574be13d2 (diff)
net: Remove prefetches from SKB list handlers.
Noticed by Linus. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 827681540d6f..09901fdd73ae 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1783,7 +1783,7 @@ static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len)
1783 1783
1784#define skb_queue_walk(queue, skb) \ 1784#define skb_queue_walk(queue, skb) \
1785 for (skb = (queue)->next; \ 1785 for (skb = (queue)->next; \
1786 prefetch(skb->next), (skb != (struct sk_buff *)(queue)); \ 1786 (skb != (struct sk_buff *)(queue)); \
1787 skb = skb->next) 1787 skb = skb->next)
1788 1788
1789#define skb_queue_walk_safe(queue, skb, tmp) \ 1789#define skb_queue_walk_safe(queue, skb, tmp) \
@@ -1792,7 +1792,7 @@ static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len)
1792 skb = tmp, tmp = skb->next) 1792 skb = tmp, tmp = skb->next)
1793 1793
1794#define skb_queue_walk_from(queue, skb) \ 1794#define skb_queue_walk_from(queue, skb) \
1795 for (; prefetch(skb->next), (skb != (struct sk_buff *)(queue)); \ 1795 for (; (skb != (struct sk_buff *)(queue)); \
1796 skb = skb->next) 1796 skb = skb->next)
1797 1797
1798#define skb_queue_walk_from_safe(queue, skb, tmp) \ 1798#define skb_queue_walk_from_safe(queue, skb, tmp) \
@@ -1802,7 +1802,7 @@ static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len)
1802 1802
1803#define skb_queue_reverse_walk(queue, skb) \ 1803#define skb_queue_reverse_walk(queue, skb) \
1804 for (skb = (queue)->prev; \ 1804 for (skb = (queue)->prev; \
1805 prefetch(skb->prev), (skb != (struct sk_buff *)(queue)); \ 1805 (skb != (struct sk_buff *)(queue)); \
1806 skb = skb->prev) 1806 skb = skb->prev)
1807 1807
1808#define skb_queue_reverse_walk_safe(queue, skb, tmp) \ 1808#define skb_queue_reverse_walk_safe(queue, skb, tmp) \