patch-2.4.2 linux/drivers/net/7990.c

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

diff -u --recursive --new-file v2.4.1/linux/drivers/net/7990.c linux/drivers/net/7990.c
@@ -21,7 +21,7 @@
 #include <linux/ptrace.h>
 #include <linux/ioport.h>
 #include <linux/in.h>
-#include <linux/malloc.h>
+#include <linux/slab.h>
 #include <linux/string.h>
 #include <linux/delay.h>
 #include <linux/init.h>
@@ -303,8 +303,10 @@
                                          (unsigned char *)&(ib->rx_buf [lp->rx_new][0]),
                                          len, 0);
                         skb->protocol = eth_type_trans (skb, dev);
-                        netif_rx (skb);
-                        lp->stats.rx_packets++;
+			netif_rx (skb);
+			dev->last_rx = jiffies;
+			lp->stats.rx_packets++;
+			lp->stats.rx_bytes += len;
                 }
 
                 /* Return the packet to the pool */
@@ -492,7 +494,7 @@
 	printk("lance_tx_timeout\n");
 	lance_reset(dev);
 	dev->trans_start = jiffies;
-	netif_start_queue (dev);
+	netif_wake_queue (dev);
 }
 
 

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