diff options
Diffstat (limited to 'drivers/net/e1000/e1000_main.c')
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 7 |
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 |