diff options
Diffstat (limited to 'drivers/net/atlx')
-rw-r--r-- | drivers/net/atlx/atl2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/atlx/atl2.c b/drivers/net/atlx/atl2.c index d548a67da1e8..5ab9c7631002 100644 --- a/drivers/net/atlx/atl2.c +++ b/drivers/net/atlx/atl2.c | |||
@@ -522,8 +522,10 @@ static void atl2_intr_tx(struct atl2_adapter *adapter) | |||
522 | atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr); | 522 | atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr); |
523 | 523 | ||
524 | /* tx statistics: */ | 524 | /* tx statistics: */ |
525 | if (txs->ok) | 525 | if (txs->ok) { |
526 | adapter->net_stats.tx_bytes += txs->pkt_size; | ||
526 | adapter->net_stats.tx_packets++; | 527 | adapter->net_stats.tx_packets++; |
528 | } | ||
527 | else | 529 | else |
528 | adapter->net_stats.tx_errors++; | 530 | adapter->net_stats.tx_errors++; |
529 | 531 | ||