mv643xx_eth: Fix tx_bytes stats calculation
Reported by Corey Minyard <cminyard@mvista.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
a2ca44c30d
commit
e7e381f639
@ -1222,7 +1222,7 @@ static int mv643xx_eth_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
|||||||
spin_lock_irqsave(&mp->lock, flags);
|
spin_lock_irqsave(&mp->lock, flags);
|
||||||
|
|
||||||
eth_tx_submit_descs_for_skb(mp, skb);
|
eth_tx_submit_descs_for_skb(mp, skb);
|
||||||
stats->tx_bytes = skb->len;
|
stats->tx_bytes += skb->len;
|
||||||
stats->tx_packets++;
|
stats->tx_packets++;
|
||||||
dev->trans_start = jiffies;
|
dev->trans_start = jiffies;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user