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

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

diff -u --recursive --new-file v2.3.43/linux/drivers/net/eepro.c linux/drivers/net/eepro.c
@@ -987,7 +987,7 @@
 	lp->tx_last = 0;
 
 	dev->trans_start = jiffies;
-	netif_start_queue (dev);
+	netif_wake_queue (dev);
 
 	outb (RCV_ENABLE_CMD, ioaddr);
 }
@@ -1001,6 +1001,8 @@
 	if (net_debug > 5)
 		printk(KERN_DEBUG  "%s: entering eepro_send_packet routine.\n", dev->name);
 	
+	netif_stop_queue (dev);
+
 	spin_lock_irqsave(&lp->lock, flags);
 
 	{
@@ -1014,7 +1016,7 @@
 
 	}
 
-	compat_dev_kfree_skb (skb, FREE_WRITE);
+	dev_kfree_skb (skb);
 
 	/* You might need to clean up and record Tx statistics here. */
 	/* lp->stats.tx_aborted_errors++; */
@@ -1408,7 +1410,7 @@
 		lp->tx_end = end;
 
 		if (test_bit(LINK_STATE_XOFF, &dev->flags))
-			netif_start_queue(dev);
+			netif_wake_queue(dev);
 		
 		/* Enable RX and TX interrupts */
 		outb(ALL_MASK & ~(RX_MASK | TX_MASK), ioaddr + INT_MASK_REG);

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])