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 d548a67..5ab9c76 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++;