mv643xx fixes - Increment TX bytes statistics counter
Subsystems (2)
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.
Signed-off-by Brent Cook <[email protected]>
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;