diff options
Diffstat (limited to 'drivers/net/e1000/e1000_main.c')
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index 447b7c8a77b1..5296a82c22b8 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c | |||
@@ -3338,16 +3338,15 @@ e1000_update_stats(struct e1000_adapter *adapter) | |||
3338 | adapter->stats.crcerrs + adapter->stats.algnerrc + | 3338 | adapter->stats.crcerrs + adapter->stats.algnerrc + |
3339 | adapter->stats.ruc + adapter->stats.roc + | 3339 | adapter->stats.ruc + adapter->stats.roc + |
3340 | adapter->stats.cexterr; | 3340 | adapter->stats.cexterr; |
3341 | adapter->net_stats.rx_length_errors = adapter->stats.ruc + | 3341 | adapter->stats.rlerrc = adapter->stats.ruc + adapter->stats.roc; |
3342 | adapter->stats.roc; | 3342 | adapter->net_stats.rx_length_errors = adapter->stats.rlerrc; |
3343 | adapter->net_stats.rx_crc_errors = adapter->stats.crcerrs; | 3343 | adapter->net_stats.rx_crc_errors = adapter->stats.crcerrs; |
3344 | adapter->net_stats.rx_frame_errors = adapter->stats.algnerrc; | 3344 | adapter->net_stats.rx_frame_errors = adapter->stats.algnerrc; |
3345 | adapter->net_stats.rx_missed_errors = adapter->stats.mpc; | 3345 | adapter->net_stats.rx_missed_errors = adapter->stats.mpc; |
3346 | 3346 | ||
3347 | /* Tx Errors */ | 3347 | /* Tx Errors */ |
3348 | 3348 | adapter->stats.txerrc = adapter->stats.ecol + adapter->stats.latecol; | |
3349 | adapter->net_stats.tx_errors = adapter->stats.ecol + | 3349 | adapter->net_stats.tx_errors = adapter->stats.txerrc; |
3350 | adapter->stats.latecol; | ||
3351 | adapter->net_stats.tx_aborted_errors = adapter->stats.ecol; | 3350 | adapter->net_stats.tx_aborted_errors = adapter->stats.ecol; |
3352 | adapter->net_stats.tx_window_errors = adapter->stats.latecol; | 3351 | adapter->net_stats.tx_window_errors = adapter->stats.latecol; |
3353 | adapter->net_stats.tx_carrier_errors = adapter->stats.tncrs; | 3352 | adapter->net_stats.tx_carrier_errors = adapter->stats.tncrs; |