Skip to contentSkip to conversation

myri10ge update for 2.6.23

PATCH Applied Brice Goglin 2 participants 3 messages Jul 13, 2007 – Jul 16, 2007

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

cover myri10ge update for 2.6.23

Hi Jeff,

Almost nothing new regarding myri10ge in 2.6.23 for now, just a single patch to remove some non-sensical code in the tx done routine.

Please apply, thanks,
Brice

#1 lore raw

PATCH 1/1 myri10ge: Remove nonsensical limit in the tx done routine

Remove nonsensical limit in the tx done routine. Specifically, the loop will always terminate after processing <= 1 rings worth of frames, as the mcp index is not refetched, so the removed conditional could never be true.

---
 drivers/net/myri10ge/myri10ge.c |    6 ------
 1 file changed, 6 deletions(-)
drivers/net/myri10ge/myri10ge.c +0 -6
Index: linux-2.6.22/drivers/net/myri10ge/myri10ge.c
===================================================================
@@ -1059,7 +1059,6 @@
 	struct myri10ge_tx_buf *tx = &mgp->tx;
 	struct sk_buff *skb;
 	int idx, len;
-	int limit = 0;
 
 	while (tx->pkt_done != mcp_index) {
 		idx = tx->done & tx->mask;
@@ -1090,11 +1089,6 @@
 							      bus), len,
 					       PCI_DMA_TODEVICE);
 		}
-
-		/* limit potential for livelock by only handling
-		 * 2 full tx rings per call */
-		if (unlikely(++limit > 2 * tx->mask))
-			break;
 	}
 	/* start the queue if we've stopped it */
 	if (netif_queue_stopped(mgp->dev)
Applied
#2 lore raw

Re: [PATCH 1/1] myri10ge: Remove nonsensical limit in the tx done routine

Quoted 9 lines · Brice Goglin

Remove nonsensical limit in the tx done routine. Specifically, the loop will always terminate after processing <= 1 rings worth of frames, as the mcp index is not refetched, so the removed conditional could never be true.

---
 drivers/net/myri10ge/myri10ge.c |    6 ------
 1 file changed, 6 deletions(-)

applied