Skip to contentSkip to conversation

ixgb: TX hangs under heavy load

PATCH In review Andy Gospodarek 2 participants 2 messages Oct 30, 2007

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

PATCH 1/1 ixgb: TX hangs under heavy load

Auke,

It has become clear that this patch resolves some tx-lockups on the ixgb driver. IBM did some checking and realized this hunk is in your sourceforge driver, but not anywhere else. Mind if we add it?

Thanks,

-andy

---

 ixgb_main.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/net/ixgb/ixgb_main.c +1 -1
index d444de5..3ec7a41 100644
@@ -1324,7 +1324,7 @@ ixgb_tx_map(struct ixgb_adapter *adapter, struct sk_buff *skb,
 
 			/* Workaround for premature desc write-backs
 			 * in TSO mode.  Append 4-byte sentinel desc */
-			if (unlikely(mss && !nr_frags && size == len
+			if (unlikely(mss && (f == (nr_frags-1)) && size == len
 			             && size > 8))
 				size -= 4;
 
#1 lore raw
Quoted 5 lines · Andy Gospodarek

Auke,

It has become clear that this patch resolves some tx-lockups on the ixgb driver. IBM did some checking and realized this hunk is in your sourceforge driver, but not anywhere else. Mind if we add it?

I'll quickly double check where this came from in the first place and will post this to Jeff

Thanks!

Auke

Quoted 20 lines

---

 ixgb_main.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/net/ixgb/ixgb_main.c +1 -1
index d444de5..3ec7a41 100644
@@ -1324,7 +1324,7 @@ ixgb_tx_map(struct ixgb_adapter *adapter, struct sk_buff *skb,
 
 			/* Workaround for premature desc write-backs
 			 * in TSO mode.  Append 4-byte sentinel desc */
-			if (unlikely(mss && !nr_frags && size == len
+			if (unlikely(mss && (f == (nr_frags-1)) && size == len
 			             && size > 8))
 				size -= 4;