]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
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 1799eee88db7f81e3206f6372eb8119ba4ea883b..6a117e9968cb5dd09e91ae4425b3cd3b27e9d35c 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;