From: Jay Cliburn Date: Sat, 20 Sep 2008 22:37:05 +0000 (-0500) Subject: atl2: add tx bytes statistic X-Git-Tag: v2.6.28-rc1~717^2~179 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e2f092ff9bf2ab515c14d2208b5f08c7d389d5d2;p=linux-2.6-omap-h63xx.git atl2: add tx bytes statistic Signed-off-by: Jay Cliburn Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/atlx/atl2.c b/drivers/net/atlx/atl2.c index d548a67da1e..5ab9c763100 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) 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++;