Prefetch the next skb information in receive.

Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>

---
 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

--

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to