Skip to contentSkip to conversation

mv643xx_eth: Do not modify struct netdev tx_queue_len

PATCH Applied Dale Farnsworth 2 participants 2 messages Oct 1, 2007 – Oct 2, 2007

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

PATCH 1/1 mv643xx_eth: Do not modify struct netdev tx_queue_len

From: Dale Farnsworth <[email protected]>

This driver erroneously zeros dev->tx_queue_len, since mp->tx_ring_size has not yet been initialized. Actually, the driver shouldn't modify tx_queue_len at all and should leave the value set by alloc_etherdev(), currently 1000.

---
Jeff, this bug was just reported today, or I would have batched it with the one I sent you last week. It's an obvious bugfix, so I'm not going to hold it in my queue.

 drivers/net/mv643xx_eth.c |    1 -
 1 file changed, 1 deletion(-)
drivers/net/mv643xx_eth.c +0 -1
index 34288fe..3153356 100644
@@ -1357,7 +1357,6 @@ static int mv643xx_eth_probe(struct platform_device *pdev)
 #endif
 
 	dev->watchdog_timeo = 2 * HZ;
-	dev->tx_queue_len = mp->tx_ring_size;
 	dev->base_addr = 0;
 	dev->change_mtu = mv643xx_eth_change_mtu;
 	dev->do_ioctl = mv643xx_eth_do_ioctl;
Applied
#1 lore raw
Quoted 7 lines · Dale Farnsworth

From: Dale Farnsworth <[email protected]>

This driver erroneously zeros dev->tx_queue_len, since mp->tx_ring_size has not yet been initialized. Actually, the driver shouldn't modify tx_queue_len at all and should leave the value set by alloc_etherdev(), currently 1000.

Quoted 8 lines

---
Jeff, this bug was just reported today, or I would have batched it with the one I sent you last week. It's an obvious bugfix, so I'm not going to hold it in my queue.

 drivers/net/mv643xx_eth.c |    1 -
 1 file changed, 1 deletion(-)

applied