Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e7e381f639657b2e681ff6fb31e131db360550ac Commit: e7e381f639657b2e681ff6fb31e131db360550ac Parent: a2ca44c30dd351cd386f4fb9f8590b999030274a Author: Dale Farnsworth <[EMAIL PROTECTED]> AuthorDate: Fri Sep 14 11:23:16 2007 -0700 Committer: Jeff Garzik <[EMAIL PROTECTED]> CommitDate: Sat Sep 15 19:31:13 2007 -0400
mv643xx_eth: Fix tx_bytes stats calculation Reported by Corey Minyard <[EMAIL PROTECTED]> Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]> --- 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 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; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html