Skip to content

Commit

Permalink
net: Remove prefetches from SKB list handlers.
Browse files Browse the repository at this point in the history
Noticed by Linus.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 23, 2011
1 parent 69c867c commit 0fcbe74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,7 @@ static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len)

#define skb_queue_walk(queue, skb) \
for (skb = (queue)->next; \
prefetch(skb->next), (skb != (struct sk_buff *)(queue)); \
(skb != (struct sk_buff *)(queue)); \
skb = skb->next)

#define skb_queue_walk_safe(queue, skb, tmp) \
Expand All @@ -1792,7 +1792,7 @@ static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len)
skb = tmp, tmp = skb->next)

#define skb_queue_walk_from(queue, skb) \
for (; prefetch(skb->next), (skb != (struct sk_buff *)(queue)); \
for (; (skb != (struct sk_buff *)(queue)); \
skb = skb->next)

#define skb_queue_walk_from_safe(queue, skb, tmp) \
Expand All @@ -1802,7 +1802,7 @@ static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len)

#define skb_queue_reverse_walk(queue, skb) \
for (skb = (queue)->prev; \
prefetch(skb->prev), (skb != (struct sk_buff *)(queue)); \
(skb != (struct sk_buff *)(queue)); \
skb = skb->prev)

#define skb_queue_reverse_walk_safe(queue, skb, tmp) \
Expand Down

0 comments on commit 0fcbe74

Please sign in to comment.