igb: reduce cache misses on tx cleanup
Subsystems (2)
PATCH 1/1 igb: reduce cache misses on tx cleanup
From: Nick Nunley <[email protected]>
This patch reduces the number of skb cache misses in the clean_tx_irq path, and results in an overall increase in tx packet throughput.
Signed-off-by Nicholas Nunley <[email protected]>
Signed-off-by Jeff Kirsher <[email protected]>
---
drivers/net/igb/igb.h | 4 +++- drivers/net/igb/igb_main.c | 45 +++++++++++++++++++------------------------- 2 files changed, 22 insertions(+), 27 deletions(-)
drivers/net/igb/igb.h +3 -1
@@ -141,8 +141,10 @@ struct igb_buffer {unsigned long time_stamp;u16 length;u16 next_to_watch; -u16 mapped_as_page; +unsigned int bytecount;u16 gso_segs; +union skb_shared_tx shtx; +u8 mapped_as_page; };/* RX */ struct {
drivers/net/igb/igb_main.c +19 -26
115 lines not on this page · raw message
From: Jeff Kirsher <[email protected]>
Date: Wed, 05 May 2010 00:58:07 -0700
Quoted 8 lines
From: Nick Nunley <[email protected]>
This patch reduces the number of skb cache misses in the
clean_tx_irqpath, and results in an overall increase in tx packet throughput.Signed-off-by Nicholas Nunley <[email protected]>Signed-off-by Jeff Kirsher <[email protected]>
Applied.