* [PATCH] mv643xx_eth: Fix tx_bytes stats calculation
@ 2007-09-14 18:23 Dale Farnsworth
2007-09-15 23:32 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Dale Farnsworth @ 2007-09-14 18:23 UTC (permalink / raw)
To: Jeff Garzik; +Cc: netdev
Reported by Corey Minyard <cminyard@mvista.com>
---
drivers/net/mv643xx_eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c
index 1799eee..6a117e9 100644
--- a/drivers/net/mv643xx_eth.c
+++ b/drivers/net/mv643xx_eth.c
@@ -1222,7 +1222,7 @@ static int mv643xx_eth_start_xmit(struct sk_buff *skb, struct net_device *dev)
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 related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-15 23:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-14 18:23 [PATCH] mv643xx_eth: Fix tx_bytes stats calculation Dale Farnsworth
2007-09-15 23:32 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).