OSDN Git Service

mv643xx_eth: Fix tx_bytes stats calculation
authorDale Farnsworth <dale@farnsworth.org>
Fri, 14 Sep 2007 18:23:16 +0000 (11:23 -0700)
committerJeff Garzik <jeff@garzik.org>
Sat, 15 Sep 2007 23:31:13 +0000 (19:31 -0400)
Reported by Corey Minyard <cminyard@mvista.com>

Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/mv643xx_eth.c

index 1799eee..6a117e9 100644 (file)
@@ -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;