aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_main.c')
-rw-r--r--drivers/net/ixgbe/ixgbe_main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index 56cc9a10c717..a3e384bc50fe 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -5912,8 +5912,13 @@ void ixgbe_update_stats(struct ixgbe_adapter *adapter)
5912 hwstats->gotc += IXGBE_READ_REG(hw, IXGBE_GOTCH); 5912 hwstats->gotc += IXGBE_READ_REG(hw, IXGBE_GOTCH);
5913 hwstats->tor += IXGBE_READ_REG(hw, IXGBE_TORH); 5913 hwstats->tor += IXGBE_READ_REG(hw, IXGBE_TORH);
5914 break; 5914 break;
5915 case ixgbe_mac_82599EB:
5916 case ixgbe_mac_X540: 5915 case ixgbe_mac_X540:
5916 /* OS2BMC stats are X540 only*/
5917 hwstats->o2bgptc += IXGBE_READ_REG(hw, IXGBE_O2BGPTC);
5918 hwstats->o2bspc += IXGBE_READ_REG(hw, IXGBE_O2BSPC);
5919 hwstats->b2ospc += IXGBE_READ_REG(hw, IXGBE_B2OSPC);
5920 hwstats->b2ogprc += IXGBE_READ_REG(hw, IXGBE_B2OGPRC);
5921 case ixgbe_mac_82599EB:
5917 hwstats->gorc += IXGBE_READ_REG(hw, IXGBE_GORCL); 5922 hwstats->gorc += IXGBE_READ_REG(hw, IXGBE_GORCL);
5918 IXGBE_READ_REG(hw, IXGBE_GORCH); /* to clear */ 5923 IXGBE_READ_REG(hw, IXGBE_GORCH); /* to clear */
5919 hwstats->gotc += IXGBE_READ_REG(hw, IXGBE_GOTCL); 5924 hwstats->gotc += IXGBE_READ_REG(hw, IXGBE_GOTCL);