Skip to contentSkip to conversation

mv643xx_eth: Fix tx_bytes stats calculation

PATCH Applied Dale Farnsworth 2 participants 2 messages Sep 14, 2007 – Sep 15, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 1799eee..6a117e9 100644
@@ -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;
 
Applied
#1 lore raw
Quoted 5 lines · Dale Farnsworth

Reported by Corey Minyard <[email protected]>

---
 drivers/net/mv643xx_eth.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

applied