Skip to content

Commit

Permalink
mv643xx_eth: Fix tx_bytes stats calculation
Browse files Browse the repository at this point in the history
Reported by Corey Minyard <cminyard@mvista.com>

Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Dale Farnsworth authored and Jeff Garzik committed Sep 15, 2007
1 parent a2ca44c commit e7e381f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/mv643xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e7e381f

Please sign in to comment.