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

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

diff -u --recursive --new-file v2.3.46/linux/drivers/net/strip.c linux/drivers/net/strip.c
@@ -1354,7 +1354,7 @@
 
     /* First make sure we're connected. */
     if (!strip_info || strip_info->magic != STRIP_MAGIC || 
-    	!test_bit(LINK_STATE_START, &strip_info->dev.state))
+    	!netif_running(&strip_info->dev))
         return;
 
     if (strip_info->tx_left > 0)
@@ -1644,7 +1644,7 @@
 {
     struct strip *strip_info = (struct strip *)(dev->priv);
 
-    if (!test_bit(LINK_STATE_START, &dev->state))
+    if (!netif_running(dev))
     {
         printk(KERN_ERR "%s: xmit call when iface is down\n", dev->name);
         return(1);
@@ -2338,7 +2338,7 @@
     const unsigned char *end = cp + count;
 
     if (!strip_info || strip_info->magic != STRIP_MAGIC 
-    	|| !test_bit(LINK_STATE_START, &strip_info->dev.state))
+    	|| !netif_running(&strip_info->dev))
         return;
 
     /* Argh! mtu change time! - costs us the packet part received at the change */

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