netdev tx timeouts

From: Larry Finger <hidden>
Date: 2006-09-13 02:25:04

Michael,

I still have not gotten a network guru to answer any questions about 
synchronize_net, but I have been testing the patch below:

Index: wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_main.c
===================================================================
--- wireless-2.6.orig/drivers/net/wireless/bcm43xx/bcm43xx_main.c
+++ wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_main.c
@@ -3169,8 +3169,8 @@ static void bcm43xx_periodic_work_handle
  		 * be preemtible.
  		 */
  		mutex_lock(&bcm->mutex);
-		netif_stop_queue(bcm->net_dev);
  		synchronize_net();
+		netif_stop_queue(bcm->net_dev);
  		spin_lock_irqsave(&bcm->irq_lock, flags);
  		bcm43xx_mac_suspend(bcm);
  		if (bcm43xx_using_pio(bcm))
With the synchronize_net call before the netif_stop_queue as shown, my device 
has run since last Saturday with no netdev watchdog tx timeouts. Roughly two 
days of that testing was done at the accelerated rate of 60X normal.

I still hope to get access to a guru, but if that doesn't happen soon, I'm going 
to push this change so that it gets into 2.6.19.

Larry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help