netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] add prefetch to skb_queue_walk
@ 2003-06-19 19:13 Stephen Hemminger
  2003-06-19 19:34 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2003-06-19 19:13 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

skb_queue_walk macro can use prefetch's  (like list_for_each)

--- include/linux/skbuff.h.orig	2003-06-19 12:08:17.000000000 -0700
+++ include/linux/skbuff.h	2003-06-19 12:08:43.000000000 -0700
@@ -1149,9 +1149,9 @@
 }
 
 #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,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] add prefetch to skb_queue_walk
  2003-06-19 19:13 [PATCH] add prefetch to skb_queue_walk Stephen Hemminger
@ 2003-06-19 19:34 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2003-06-19 19:34 UTC (permalink / raw)
  To: shemminger; +Cc: netdev

   From: Stephen Hemminger <shemminger@osdl.org>
   Date: Thu, 19 Jun 2003 12:13:25 -0700

   skb_queue_walk macro can use prefetch's  (like list_for_each)
   
Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-19 19:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-19 19:13 [PATCH] add prefetch to skb_queue_walk Stephen Hemminger
2003-06-19 19:34 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).