mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-29 21:06:41 +07:00
atl2: add tx bytes statistic
Signed-off-by: Jay Cliburn <jacliburn@bellsouth.net> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
1545e205db
commit
e2f092ff9b
@ -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++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user