patch-2.4.2 linux/drivers/net/sun3lance.c
Next file: linux/drivers/net/sunbmac.c
Previous file: linux/drivers/net/strip.c
Back to the patch index
Back to the overall index
-  Lines: 29
-  Date:
Tue Feb 13 13:15:05 2001
-  Orig file: 
v2.4.1/linux/drivers/net/sun3lance.c
-  Orig date: 
Fri Dec 29 14:07:22 2000
diff -u --recursive --new-file v2.4.1/linux/drivers/net/sun3lance.c linux/drivers/net/sun3lance.c
@@ -3,7 +3,7 @@
 
   Sun3 Lance ethernet driver, by Sam Creasey (sammy@users.qual.net).  
   This driver is a part of the linux kernel, and is thus distributed
-  under the GNU Public License.
+  under the GNU General Public License.
   
   The values used in LANCE_OBIO and LANCE_IRQ seem to be empirically
   true for the correct IRQ and address of the lance registers.  They
@@ -31,7 +31,7 @@
 #include <linux/string.h>
 #include <linux/ptrace.h>
 #include <linux/errno.h>
-#include <linux/malloc.h>
+#include <linux/slab.h>
 #include <linux/interrupt.h>
 #include <linux/init.h>
 #include <linux/ioport.h>
@@ -780,8 +780,9 @@
 
 				skb->protocol = eth_type_trans( skb, dev );
 				netif_rx( skb );
+				dev->last_rx = jiffies;
 				lp->stats.rx_packets++;
-				lp->stats.rx_bytes += skb->len;
+				lp->stats.rx_bytes += pkt_len;
 			}
 		}
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)