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

Next file: linux/drivers/net/plip.c
Previous file: linux/drivers/net/pcmcia/xirc2ps_cs.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/drivers/net/pcnet32.c linux/drivers/net/pcnet32.c
@@ -1153,8 +1153,8 @@
 	    }
 #endif
 	    if (lp->tx_full &&
-	        test_bit(LINK_STATE_XOFF, &dev->flags) &&
-		dirty_tx > lp->cur_tx - TX_RING_SIZE + 2) {
+	        netif_queue_stopped(dev) &&
+			dirty_tx > lp->cur_tx - TX_RING_SIZE + 2) {
 		/* The ring is no longer full, clear tbusy. */
 		lp->tx_full = 0;
 		netif_wake_queue (dev);

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