patch-2.3.43 linux/drivers/net/ethertap.c

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

diff -u --recursive --new-file v2.3.42/linux/drivers/net/ethertap.c linux/drivers/net/ethertap.c
@@ -123,9 +123,7 @@
 		MOD_DEC_USE_COUNT;
 		return -ENOBUFS;
 	}
-
-	dev->start = 1;
-	dev->tbusy = 0;
+	netif_start_queue(dev);
 	return 0;
 }
 
@@ -319,8 +317,7 @@
 	if (ethertap_debug > 2)
 		printk("%s: Shutting down.\n", dev->name);
 
-	dev->tbusy = 1;
-	dev->start = 0;
+	netif_stop_queue(dev);
 
 	if (sk) {
 		lp->nl = NULL;

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