提交 e2f092ff 编写于 作者: J Jay Cliburn 提交者: Jeff Garzik

atl2: add tx bytes statistic

Signed-off-by: NJay Cliburn <jacliburn@bellsouth.net>
Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
上级 1545e205
......@@ -522,8 +522,10 @@ static void atl2_intr_tx(struct atl2_adapter *adapter)
atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr);
/* tx statistics: */
if (txs->ok)
if (txs->ok) {
adapter->net_stats.tx_bytes += txs->pkt_size;
adapter->net_stats.tx_packets++;
}
else
adapter->net_stats.tx_errors++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册