patch-2.3.47 linux/drivers/net/depca.c

Next file: linux/drivers/net/eepro.c
Previous file: linux/drivers/net/de600.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/drivers/net/depca.c linux/drivers/net/depca.c
@@ -905,7 +905,8 @@
 	if (csr0 & TINT)	/* Tx interrupt (packet sent) */
 		depca_tx (dev);
 
-	if ((TX_BUFFS_AVAIL >= 0) && (test_bit (LINK_STATE_XOFF, &dev->flags))) {	/* any resources available? */
+	/* Any resources available? */
+	if ((TX_BUFFS_AVAIL >= 0) && netif_queue_stopped(dev)) {
 		netif_wake_queue (dev);
 
 		/* Unmask the DEPCA board interrupts and turn off the LED */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)