summaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000/e1000_main.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-12-15 11:16:33 -0500
committerJeff Garzik <jeff@garzik.org>2006-12-26 15:51:30 -0500
commit15e376b4eed2575b323d575403569ec1b5f63fda (patch)
tree899b08b94f5f3805b417bc827c0cd9d85e5a167c /drivers/net/e1000/e1000_main.c
parent1f753861d272e648f3234e4f5fdea9434ae7bee4 (diff)
downloadop-kernel-dev-15e376b4eed2575b323d575403569ec1b5f63fda.zip
op-kernel-dev-15e376b4eed2575b323d575403569ec1b5f63fda.tar.gz
e1000: 3 new driver stats for managability testing
Add 3 extra packet redirect counters for tracking purposes to make sure we can test that all packets arrive properly. Originally from Jesse Brandeburg <jesse.brandeburg@intel.com>, rewritten to use feature flags by me. Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/e1000/e1000_main.c')
-rw-r--r--drivers/net/e1000/e1000_main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index 3f40a90..b06b51a 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -3743,6 +3743,13 @@ e1000_update_stats(struct e1000_adapter *adapter)
adapter->phy_stats.receive_errors += phy_tmp;
}
+ /* Management Stats */
+ if (adapter->hw.has_smbus) {
+ adapter->stats.mgptc += E1000_READ_REG(hw, MGTPTC);
+ adapter->stats.mgprc += E1000_READ_REG(hw, MGTPRC);
+ adapter->stats.mgpdc += E1000_READ_REG(hw, MGTPDC);
+ }
+
spin_unlock_irqrestore(&adapter->stats_lock, flags);
}
#ifdef CONFIG_PCI_MSI
OpenPOWER on IntegriCloud