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

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]