aboutsummaryrefslogtreecommitdiffstats
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)
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 3f40a902de64..b06b51a55276 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)
3743 adapter->phy_stats.receive_errors += phy_tmp; 3743 adapter->phy_stats.receive_errors += phy_tmp;
3744 } 3744 }
3745 3745
3746 /* Management Stats */
3747 if (adapter->hw.has_smbus) {
3748 adapter->stats.mgptc += E1000_READ_REG(hw, MGTPTC);
3749 adapter->stats.mgprc += E1000_READ_REG(hw, MGTPRC);
3750 adapter->stats.mgpdc += E1000_READ_REG(hw, MGTPDC);
3751 }
3752
3746 spin_unlock_irqrestore(&adapter->stats_lock, flags); 3753 spin_unlock_irqrestore(&adapter->stats_lock, flags);
3747} 3754}
3748#ifdef CONFIG_PCI_MSI 3755#ifdef CONFIG_PCI_MSI