Subject: [PATCH 10/17] sky2: add prefetch for next skb on receive

From: Stephen Hemminger <[email-masked]>
Date: Tue, 08 May 2007 20:49:59 -0700

Prefetch the next skb information in receive.

Signed-off-by: Stephen Hemminger <[email-masked]>

---
 drivers/net/sky2.c |    1 +
 1 file changed, 1 insertion(+)

--- sky2-2.6.21.orig/drivers/net/sky2.c	2007-05-08 10:29:14.000000000 -0700
+++ sky2-2.6.21/drivers/net/sky2.c	2007-05-08 10:29:17.000000000 -0700
@@ -2160,6 +2160,7 @@ force_update:
 			/* Stop after net poll weight */
 			if (++work_done >= to_do)
 				goto exit_loop;
+			prefetch(sky2->rx_ring[sky2->rx_next].skb);
 			break;
 
 #ifdef SKY2_VLAN_TAG_USED

--