patch-2.2.17 linux/drivers/net/ewrk3.c

Next file: linux/drivers/net/gmac.c
Previous file: linux/drivers/net/eepro100.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.16/drivers/net/ewrk3.c linux/drivers/net/ewrk3.c
@@ -846,9 +846,9 @@
 						}
 					}
 
+					lp->stats.tx_bytes += skb->len;
 					dev->trans_start = jiffies;
 					dev_kfree_skb(skb);
-
 				} else {	/* return unused page to the free memory queue */
 					outb(page, EWRK3_FMQ);
 				}
@@ -1029,6 +1029,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)