diff options
author | Malli Chilakala <mallikarjuna.chilakala@intel.com> | 2005-04-28 22:41:11 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-05-12 20:48:53 -0400 |
commit | 6d9157577d926d2a83fe8d4914c0cc216deb5842 (patch) | |
tree | 70082b81242a849a62091d18389acafa7bb76b80 /drivers/net | |
parent | 70b8f1e16a788eccdd36f39679774b1a08a6ba55 (diff) |
[PATCH] e1000:Fix computation of netdev stats from controller stats counters
Fix computation of netdev stats from controller stats counters - from
sfeldma@pobox.com
Signed-off-by: Mallikarjuna R Chilakala <mallikarjuna.chilakala@intel.com>
Signed-off-by: Ganesh Venkatesan <ganesh.venkatesan@intel.com>
Signed-off-by: John Ronciak <john.ronciak@intel.com>
diff -up net-drivers-2.6/drivers/net/e1000/e1000_main.c net-drivers-2.6/drivers/net/e1000.new/e1000_main.c
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index b5811f4f88f0..ed1e57ac7554 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c | |||
@@ -2230,9 +2230,9 @@ e1000_update_stats(struct e1000_adapter *adapter) | |||
2230 | 2230 | ||
2231 | adapter->net_stats.rx_errors = adapter->stats.rxerrc + | 2231 | adapter->net_stats.rx_errors = adapter->stats.rxerrc + |
2232 | adapter->stats.crcerrs + adapter->stats.algnerrc + | 2232 | adapter->stats.crcerrs + adapter->stats.algnerrc + |
2233 | adapter->stats.rlec + adapter->stats.rnbc + | 2233 | adapter->stats.rlec + adapter->stats.mpc + |
2234 | adapter->stats.mpc + adapter->stats.cexterr; | 2234 | adapter->stats.cexterr; |
2235 | adapter->net_stats.rx_dropped = adapter->stats.rnbc; | 2235 | adapter->net_stats.rx_dropped = adapter->stats.mpc; |
2236 | adapter->net_stats.rx_length_errors = adapter->stats.rlec; | 2236 | adapter->net_stats.rx_length_errors = adapter->stats.rlec; |
2237 | adapter->net_stats.rx_crc_errors = adapter->stats.crcerrs; | 2237 | adapter->net_stats.rx_crc_errors = adapter->stats.crcerrs; |
2238 | adapter->net_stats.rx_frame_errors = adapter->stats.algnerrc; | 2238 | adapter->net_stats.rx_frame_errors = adapter->stats.algnerrc; |