* [PATCH 2/3] mv643xx fixes - Increment TX bytes statistics counter
@ 2006-06-27 14:52 Brent Cook
0 siblings, 0 replies; only message in thread
From: Brent Cook @ 2006-06-27 14:52 UTC (permalink / raw)
To: netdev
This fixes a simple typo from the last set of driver simplifications patches.
Now TX bytes stats are actually incremented rather than just containing the
size of the last packet sent.
Signed-off-by: Brent Cook <bcook@bpointsys.com>
--- a/drivers/net/mv643xx_eth.c 2006-05-04 00:51:47.000000000 -0500
+++ b/drivers/net/mv643xx_eth.c 2006-06-27 09:20:58.000000000 -0500
@@ -1211,7 +1218,7 @@
spin_lock_irqsave(&mp->lock, flags);
eth_tx_submit_descs_for_skb(mp, skb);
- stats->tx_bytes = skb->len;
+ stats->tx_bytes += skb->len;
stats->tx_packets++;
dev->trans_start = jiffies;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-06-27 14:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-27 14:52 [PATCH 2/3] mv643xx fixes - Increment TX bytes statistics counter Brent Cook
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.