From 28a7c0306e3060a1a9da3745397ace780aa1496f Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <shemminger@osdl.org>
Date: Wed, 18 Jun 2003 22:38:19 -0700
Subject: [PATCH] [NET]: Add prefetch to skb_queue_walk.

---
 include/linux/skbuff.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 3398f0a283db..9e9516b331a3 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1154,9 +1154,9 @@ static inline void kunmap_skb_frag(void *vaddr)
 }
 
 #define skb_queue_walk(queue, skb) \
-		for (skb = (queue)->next;			\
+		for (skb = (queue)->next, prefetch(skb->next);	\
 		     (skb != (struct sk_buff *)(queue));	\
-		     skb = skb->next)
+		     skb = skb->next, prefetch(skb->next))
 
 
 extern struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags,
-- 
2.30.9