提交 e7e381f6 编写于 作者: D Dale Farnsworth 提交者: Jeff Garzik

mv643xx_eth: Fix tx_bytes stats calculation

Reported by Corey Minyard <cminyard@mvista.com>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 a2ca44c3
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册