patch-2.3.44 linux/drivers/net/sb1000.c

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

diff -u --recursive --new-file v2.3.43/linux/drivers/net/sb1000.c linux/drivers/net/sb1000.c
@@ -1002,10 +1002,8 @@
 			"(should be %x.%02x)\n", name, version[0], version[1],
 			FirmwareVersion[0], FirmwareVersion[1]);
 
-	dev->interrupt = 0;
-	dev->tbusy = 0;
-	dev->start = 1;
 
+	netif_start_queue(dev);
 	MOD_INC_USE_COUNT;
 	return 0;					/* Always succeed */
 }
@@ -1122,10 +1120,6 @@
 			irq);
 		return;
 	}
-	if (dev->interrupt)
-		printk(KERN_ERR "%s: Re-entering the interrupt handler.\n",
-			dev->name);
-	dev->interrupt = 1;
 
 	ioaddr[0] = dev->base_addr;
 	/* rmem_end holds the second I/O address - fv */
@@ -1135,7 +1129,6 @@
 	/* is it a good interrupt? */
 	st = inb(ioaddr[1] + 6);
 	if (!(st & 0x08 && st & 0x20)) {
-		dev->interrupt = 0;
 		return;
 	}
 
@@ -1167,7 +1160,6 @@
 		lp->rx_error_count = 0;
 	}
 
-	dev->interrupt = 0;
 	return;
 }
 
@@ -1186,9 +1178,8 @@
 	if (sb1000_debug > 2)
 		printk(KERN_DEBUG "%s: Shutting down sb1000.\n", dev->name);
 
-	dev->tbusy = 1;
-	dev->start = 0;
-
+	netif_stop_queue(dev);
+	
 	ioaddr[0] = dev->base_addr;
 	/* rmem_end holds the second I/O address - fv */
 	ioaddr[1] = dev->rmem_end;

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