patch-2.4.3 linux/drivers/net/de600.c
Next file: linux/drivers/net/de620.c
Previous file: linux/drivers/net/de4x5.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sat Mar 3 10:55:47 2001
- Orig file:
v2.4.2/linux/drivers/net/de600.c
- Orig date:
Thu Nov 16 12:51:28 2000
diff -u --recursive --new-file v2.4.2/linux/drivers/net/de600.c linux/drivers/net/de600.c
@@ -616,11 +616,15 @@
for (i = size; i > 0; --i, ++buffer)
*buffer = de600_read_byte(READ_DATA, dev);
- ((struct net_device_stats *)(dev->priv))->rx_packets++; /* count all receives */
-
skb->protocol=eth_type_trans(skb,dev);
netif_rx(skb);
+
+ /* update stats */
+ dev->last_rx = jiffies;
+ ((struct net_device_stats *)(dev->priv))->rx_packets++; /* count all receives */
+ ((struct net_device_stats *)(dev->priv))->rx_bytes += size; /* count all received bytes */
+
/*
* If any worth-while packets have been received, netif_rx()
* has done a mark_bh(INET_BH) for us and will work on them
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)