]> bbs.cooldavid.org Git - net-next-2.6.git/commit
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)
commit9ed318d546a29d7a591dbe648fd1a2efe3be1180
treeadcccd4b9c015d0d81fbce1928c135b269ac1d26
parent4447957a825031b3faf3b5bc2013afe35eff492b
e1000e: save skb counts in TX to avoid cache misses

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>
drivers/net/e1000e/e1000.h
drivers/net/e1000e/netdev.c