patch-2.1.88 linux/drivers/net/atarilance.c
Next file: linux/drivers/net/com20020.c
Previous file: linux/drivers/net/arc-rimi.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Fri Feb 20 17:55:45 1998
- Orig file:
v2.1.87/linux/drivers/net/atarilance.c
- Orig date:
Thu Feb 12 20:56:07 1998
diff -u --recursive --new-file v2.1.87/linux/drivers/net/atarilance.c linux/drivers/net/atarilance.c
@@ -819,6 +819,7 @@
head->flag = TMD1_OWN_CHIP | TMD1_ENP | TMD1_STP;
dev_kfree_skb( skb );
lp->cur_tx++;
+ lp->stats.tx_bytes += skb->len;
while( lp->cur_tx >= TX_RING_SIZE && lp->dirty_tx >= TX_RING_SIZE ) {
lp->cur_tx -= TX_RING_SIZE;
lp->dirty_tx -= TX_RING_SIZE;
@@ -1027,6 +1028,7 @@
skb->protocol = eth_type_trans( skb, dev );
netif_rx( skb );
lp->stats.rx_packets++;
+ lp->stats.rx_bytes += skb->len;
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov