- This patch is to improve performance by adding prefetch to the ixgb driver - Add driver comments
Signed-off-by: Jeff Kirsher <[EMAIL PROTECTED]> Signed-off-by: Jesse Brandeburg <[EMAIL PROTECTED]> Signed-off-by: John Ronciak <[EMAIL PROTECTED]> --- drivers/net/ixgb/ixgb_main.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c index ee63120..14a9ac0 100644 --- a/drivers/net/ixgb/ixgb_main.c +++ b/drivers/net/ixgb/ixgb_main.c @@ -29,6 +29,13 @@ #include "ixgb.h" /* Change Log + * 1.0.104 10-Jan-2006 + * - fix for copybreak/recycle + * 1.0.103 Oct-3 + * - suck in some e1000 changes, including copybreak and LLTX + * - support for CX4 adapters + * 1.0.102 June-20-2005 + * - add a workaround for a hardware issue when using TSO * 1.0.96 04/19/05 * - Make needlessly global code static -- [EMAIL PROTECTED] * - ethtool cleanup -- [EMAIL PROTECTED] @@ -1910,7 +1917,7 @@ ixgb_clean_rx_irq(struct ixgb_adapter *a skb = buffer_info->skb; buffer_info->skb = NULL; - prefetch(skb->data); + prefetch(skb->data - NET_IP_ALIGN); if(++i == rx_ring->count) i = 0; next_rxd = IXGB_RX_DESC(*rx_ring, i); @@ -1923,6 +1930,7 @@ ixgb_clean_rx_irq(struct ixgb_adapter *a next_buffer = &rx_ring->buffer_info[i]; next_skb = next_buffer->skb; prefetch(next_skb); + prefetch(next_skb->data - NET_IP_ALIGN); cleaned = TRUE; - 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