From e7e381f639657b2e681ff6fb31e131db360550ac Mon Sep 17 00:00:00 2001 From: Dale Farnsworth Date: Fri, 14 Sep 2007 11:23:16 -0700 Subject: mv643xx_eth: Fix tx_bytes stats calculation Reported by Corey Minyard Signed-off-by: Jeff Garzik --- drivers/net/mv643xx_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/net/mv643xx_eth.c') diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c index 1799eee88db..6a117e9968c 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; -- cgit v1.2.3-18-g5258