Commit e2f092ff authored by Jay Cliburn's avatar Jay Cliburn Committed by Jeff Garzik

atl2: add tx bytes statistic

Signed-off-by: default avatarJay Cliburn <jacliburn@bellsouth.net>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 1545e205
...@@ -522,8 +522,10 @@ static void atl2_intr_tx(struct atl2_adapter *adapter) ...@@ -522,8 +522,10 @@ static void atl2_intr_tx(struct atl2_adapter *adapter)
atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr); atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr);
/* tx statistics: */ /* tx statistics: */
if (txs->ok) if (txs->ok) {
adapter->net_stats.tx_bytes += txs->pkt_size;
adapter->net_stats.tx_packets++; adapter->net_stats.tx_packets++;
}
else else
adapter->net_stats.tx_errors++; adapter->net_stats.tx_errors++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment