patch-2.1.112 linux/drivers/net/eepro.c
Next file: linux/drivers/net/eepro100.c
Previous file: linux/drivers/net/daynaport.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Sun Jul 26 23:35:56 1998
- Orig file:
v2.1.111/linux/drivers/net/eepro.c
- Orig date:
Thu Feb 12 20:56:08 1998
diff -u --recursive --new-file v2.1.111/linux/drivers/net/eepro.c linux/drivers/net/eepro.c
@@ -1106,6 +1106,8 @@
dev->tbusy = 0;
}
+ lp->stats.tx_bytes += length;
+
if (net_debug > 5)
printk("eepro: exiting hardware_send_packet routine.\n");
return;
@@ -1164,6 +1166,7 @@
skb->protocol = eth_type_trans(skb,dev);
netif_rx(skb);
lp->stats.rx_packets++;
+ lp->stats.rx_bytes += rcv_size;
}
else { /* Not sure will ever reach here,
I set the 595 to discard bad received frames */
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]