diff options
author | Mitch Williams <mitch.a.williams@intel.com> | 2006-09-27 15:53:37 -0400 |
---|---|---|
committer | Auke Kok <juke-jan.h.kok@intel.com> | 2006-09-27 15:53:37 -0400 |
commit | 49559854c9ea6d6950631d558d33faff49fa74f3 (patch) | |
tree | 555e34f173fccb3d6802e3affe9dafd4cea299c4 /drivers/net/e1000/e1000_main.c | |
parent | 35574764c7eafab4ec0aa92c18a78a51acc8a710 (diff) |
e1000: add multicast stats counters
Add 4 multicast and broadcast hardware counters (rx/tx), and eliminate
as many non-hardware counters as possible.
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
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; |