]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
e1000e: save skb counts in TX to avoid cache misses
authorTom Herbert <therbert@google.com>
Wed, 5 May 2010 14:02:27 +0000 (14:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 May 2010 04:11:25 +0000 (21:11 -0700)
In e1000_tx_map, precompute number of segements and bytecounts which
are derived from fields in skb; these are stored in buffer_info.  When
cleaning tx in e1000_clean_tx_irq use the values in the associated
buffer_info for statistics counting, this eliminates cache misses
on skb fields.

Signed-off-by: Tom Herbert <therbert@google.com>
Acked-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found