aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-05-22 19:51:43 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-05-23 00:43:41 -0400
commita1e4891fd48d298870b704c6eb48cba0da5ed6b1 (patch)
tree96fa29fd0c3803f1d1803e1b979c6ac8345fff5a /include/linux/skbuff.h
parent70c71606190e9115e5f8363bfcd164c582eb314a (diff)
Remove prefetch() from <linux/skbuff.h> and "netlabel_addrlist.h"
Commit e66eed651fd1 ("list: remove prefetching from regular list iterators") removed the include of prefetch.h from list.h. The skbuff list traversal still had them. Quoth David Miller: "Please just remove the prefetches. Those are modelled after list.h as I intend to eventually convert SKB list handling to "struct list_head" but we're not there yet. Therefore if we kill prefetches from list.h we should kill it from these things in skbuff.h too." Requested-by: David Miller <davem@davemloft.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 827681540d6f..16c9c091555d 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -28,7 +28,6 @@
28#include <net/checksum.h> 28#include <net/checksum.h>
29#include <linux/rcupdate.h> 29#include <linux/rcupdate.h>
30#include <linux/dmaengine.h> 30#include <linux/dmaengine.h>
31#include <linux/prefetch.h>
32#include <linux/hrtimer.h> 31#include <linux/hrtimer.h>
33 32
34/* Don't change this without changing skb_csum_unnecessary! */ 33/* Don't change this without changing skb_csum_unnecessary! */
@@ -1783,7 +1782,7 @@ static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len)
1783 1782
1784#define skb_queue_walk(queue, skb) \ 1783#define skb_queue_walk(queue, skb) \
1785 for (skb = (queue)->next; \ 1784 for (skb = (queue)->next; \
1786 prefetch(skb->next), (skb != (struct sk_buff *)(queue)); \ 1785 skb != (struct sk_buff *)(queue); \
1787 skb = skb->next) 1786 skb = skb->next)
1788 1787
1789#define skb_queue_walk_safe(queue, skb, tmp) \ 1788#define skb_queue_walk_safe(queue, skb, tmp) \
@@ -1792,7 +1791,7 @@ static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len)
1792 skb = tmp, tmp = skb->next) 1791 skb = tmp, tmp = skb->next)
1793 1792
1794#define skb_queue_walk_from(queue, skb) \ 1793#define skb_queue_walk_from(queue, skb) \
1795 for (; prefetch(skb->next), (skb != (struct sk_buff *)(queue)); \ 1794 for (; skb != (struct sk_buff *)(queue); \
1796 skb = skb->next) 1795 skb = skb->next)
1797 1796
1798#define skb_queue_walk_from_safe(queue, skb, tmp) \ 1797#define skb_queue_walk_from_safe(queue, skb, tmp) \
@@ -1802,7 +1801,7 @@ static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len)
1802 1801
1803#define skb_queue_reverse_walk(queue, skb) \ 1802#define skb_queue_reverse_walk(queue, skb) \
1804 for (skb = (queue)->prev; \ 1803 for (skb = (queue)->prev; \
1805 prefetch(skb->prev), (skb != (struct sk_buff *)(queue)); \ 1804 skb != (struct sk_buff *)(queue); \
1806 skb = skb->prev) 1805 skb = skb->prev)
1807 1806
1808#define skb_queue_reverse_walk_safe(queue, skb, tmp) \ 1807#define skb_queue_reverse_walk_safe(queue, skb, tmp) \