Lines 2096-2102
Link Here
|
2096 |
atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr); |
2096 |
atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr); |
2097 |
|
2097 |
|
2098 |
// tx statistics: |
2098 |
// tx statistics: |
2099 |
if (txs->ok) adapter->net_stats.tx_packets++; |
2099 |
if (txs->ok) { |
|
|
2100 |
// Add packet size to byte statistics |
2101 |
adapter->net_stats.tx_bytes += txs->pkt_size; |
2102 |
adapter->net_stats.tx_packets++; |
2103 |
} |
2100 |
else adapter->net_stats.tx_errors++; |
2104 |
else adapter->net_stats.tx_errors++; |
2101 |
if (txs->defer) adapter->net_stats.collisions++; |
2105 |
if (txs->defer) adapter->net_stats.collisions++; |
2102 |
if (txs->abort_col) adapter->net_stats.tx_aborted_errors++; |
2106 |
if (txs->abort_col) adapter->net_stats.tx_aborted_errors++; |