Skip to contentSkip to conversation

igb: reduce cache misses on tx cleanup

PATCH Applied Jeff Kirsher 2 participants 2 messages May 5, 2010 – May 6, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---

 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
index 735ede9..6e63d9a 100644
@@ -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