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

Next file: linux/drivers/net/8390.c
Previous file: linux/drivers/net/8139too.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/drivers/net/82596.c linux/drivers/net/82596.c
@@ -1251,7 +1251,7 @@
 		}
 
 		if ((lp->cmd_head != (struct i596_cmd *) I596_NULL) &&
-		    (test_bit(LINK_STATE_START, &dev->state)))
+		    netif_running(dev))
 			ack_cmd |= CUC_START;
 		lp->scb.cmd = WSWAPcmd(lp->cmd_head);
 	}
@@ -1260,7 +1260,7 @@
 			printk("%s: i596 interrupt received a frame.\n", dev->name);
 		/* Only RX_START if stopped - RGH 07-07-96 */
 		if (status & 0x1000) {
-			if (test_bit(LINK_STATE_START, &dev->state))
+			if (netif_running(dev))
 				ack_cmd |= RX_START;
 			if (i596_debug > 1)
 				printk("%s: i596 interrupt receive unit inactive %x.\n", dev->name, status & 0x00f0);

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