Skip to contentSkip to conversation

mv643xx fixes - Increment TX bytes statistics counter

PATCH In review Brent Cook 1 participant 1 message Jun 27, 2006

Subsystems (2)
lore
Share & tools
lore

Brent Cook

author
#0 lore raw

PATCH 2/3 mv643xx fixes - Increment TX bytes statistics counter

This fixes a simple typo from the last set of driver simplifications patches. Now TX bytes stats are actually incremented rather than just containing the size of the last packet sent.

drivers/net/mv643xx_eth.c +1 -1
@@ -1211,7 +1218,7 @@
 	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;