patch-2.4.2 linux/drivers/net/3c507.c
Next file: linux/drivers/net/3c509.c
Previous file: linux/drivers/net/3c505.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Tue Feb 13 13:15:05 2001
- Orig file:
v2.4.1/linux/drivers/net/3c507.c
- Orig date:
Tue Nov 14 13:16:37 2000
diff -u --recursive --new-file v2.4.1/linux/drivers/net/3c507.c linux/drivers/net/3c507.c
@@ -6,7 +6,7 @@
Director, National Security Agency.
This software may be used and distributed according to the terms
- of the GNU Public License, incorporated herein by reference.
+ of the GNU General Public License, incorporated herein by reference.
The author may be reached as becker@CESDIS.gsfc.nasa.gov, or C/O
Center of Excellence in Space Data and Information Sciences
@@ -59,7 +59,7 @@
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
-#include <linux/malloc.h>
+#include <linux/slab.h>
#include <linux/init.h>
@@ -835,7 +835,9 @@
skb->protocol=eth_type_trans(skb,dev);
netif_rx(skb);
+ dev->last_rx = jiffies;
lp->stats.rx_packets++;
+ lp->stats.rx_bytes += pkt_len;
}
/* Clear the status word and set End-of-List on the rx frame. */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)