patch-2.4.0-test7 linux/drivers/net/ewrk3.c

Next file: linux/drivers/net/fc/Makefile
Previous file: linux/drivers/net/epic100.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test6/linux/drivers/net/ewrk3.c linux/drivers/net/ewrk3.c
@@ -843,6 +843,7 @@
 					}
 				}
 
+				lp->stats.tx_bytes += skb->len;
 				dev->trans_start = jiffies;
 				dev_kfree_skb(skb);
 			} else {	/* return unused page to the free memory queue */
@@ -1010,6 +1011,7 @@
 						   ** Update stats
 						 */
 						lp->stats.rx_packets++;
+						lp->stats.rx_bytes += pkt_len;
 						for (i = 1; i < EWRK3_PKT_STAT_SZ - 1; i++) {
 							if (pkt_len < i * EWRK3_PKT_BIN_SZ) {
 								lp->pktStats.bins[i]++;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)