mv643xx_eth: Fix tx_bytes stats calculation
Subsystems (2)
PATCH 1/1 mv643xx_eth: Fix tx_bytes stats calculation
Reported by Corey Minyard <[email protected]>
--- drivers/net/mv643xx_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/mv643xx_eth.c +1 -1
@@ -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;
Jeff Garzik
AppliedQuoted 5 lines · Dale Farnsworth
Reported by Corey Minyard <[email protected]>
--- drivers/net/mv643xx_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
applied