aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/atlx/atl2.c
diff options
context:
space:
mode:
authorJay Cliburn <jacliburn@bellsouth.net>2008-09-20 18:37:05 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-09-24 22:11:49 -0400
commite2f092ff9bf2ab515c14d2208b5f08c7d389d5d2 (patch)
tree1a7f5760e831c51b1be274711fa88da4ba43bdd3 /drivers/net/atlx/atl2.c
parent1545e205db6e797861d644e3459339109f7573ff (diff)
atl2: add tx bytes statistic
Signed-off-by: Jay Cliburn <jacliburn@bellsouth.net> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/atlx/atl2.c')
-rw-r--r--drivers/net/atlx/atl2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/atlx/atl2.c b/drivers/net/atlx/atl2.c
index d548a67da1e8..5ab9c7631002 100644
--- a/drivers/net/atlx/atl2.c
+++ b/drivers/net/atlx/atl2.c
@@ -522,8 +522,10 @@ static void atl2_intr_tx(struct atl2_adapter *adapter)
522 atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr); 522 atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr);
523 523
524 /* tx statistics: */ 524 /* tx statistics: */
525 if (txs->ok) 525 if (txs->ok) {
526 adapter->net_stats.tx_bytes += txs->pkt_size;
526 adapter->net_stats.tx_packets++; 527 adapter->net_stats.tx_packets++;
528 }
527 else 529 else
528 adapter->net_stats.tx_errors++; 530 adapter->net_stats.tx_errors++;
529 531