Skip to content

Commit

Permalink
atl2: add tx bytes statistic
Browse files Browse the repository at this point in the history
Signed-off-by: Jay Cliburn <jacliburn@bellsouth.net>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Jay Cliburn authored and Jeff Garzik committed Sep 25, 2008
1 parent 1545e20 commit e2f092f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/atlx/atl2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;

Expand Down

0 comments on commit e2f092f

Please sign in to comment.