]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
atl2: add tx bytes statistic
authorJay Cliburn <jacliburn@bellsouth.net>
Sat, 20 Sep 2008 22:37:05 +0000 (17:37 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 25 Sep 2008 02:11:49 +0000 (22:11 -0400)
Signed-off-by: Jay Cliburn <jacliburn@bellsouth.net>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/atlx/atl2.c

index d548a67da1e881501f243e2335b18367b028cc27..5ab9c76310023856c59b0e983e84d1afe9dbe3c4 100644 (file)
@@ -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++;