diff options
author | Dale Farnsworth <dale@farnsworth.org> | 2007-09-14 14:23:16 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-09-15 19:31:13 -0400 |
commit | e7e381f639657b2e681ff6fb31e131db360550ac (patch) | |
tree | 17d08d07df94fc43d06c4cc140fd0a662e26d15e /drivers/net/mv643xx_eth.c | |
parent | a2ca44c30dd351cd386f4fb9f8590b999030274a (diff) |
mv643xx_eth: Fix tx_bytes stats calculation
Reported by Corey Minyard <cminyard@mvista.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/mv643xx_eth.c')
-rw-r--r-- | drivers/net/mv643xx_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c index 1799eee88db7..6a117e9968cb 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) | |||
1222 | spin_lock_irqsave(&mp->lock, flags); | 1222 | spin_lock_irqsave(&mp->lock, flags); |
1223 | 1223 | ||
1224 | eth_tx_submit_descs_for_skb(mp, skb); | 1224 | eth_tx_submit_descs_for_skb(mp, skb); |
1225 | stats->tx_bytes = skb->len; | 1225 | stats->tx_bytes += skb->len; |
1226 | stats->tx_packets++; | 1226 | stats->tx_packets++; |
1227 | dev->trans_start = jiffies; | 1227 | dev->trans_start = jiffies; |
1228 | 1228 | ||