Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2f092ff authored by Jay Cliburn's avatar Jay Cliburn Committed by Jeff Garzik
Browse files

atl2: add tx bytes statistic

parent 1545e205
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -522,8 +522,10 @@ static void atl2_intr_tx(struct atl2_adapter *adapter)
		atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr);
		atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr);


		/* tx statistics: */
		/* tx statistics: */
		if (txs->ok)
		if (txs->ok) {
			adapter->net_stats.tx_bytes += txs->pkt_size;
			adapter->net_stats.tx_packets++;
			adapter->net_stats.tx_packets++;
		}
		else
		else
			adapter->net_stats.tx_errors++;
			adapter->net_stats.tx_errors++;