]> Git Repo - linux.git/commitdiff
ixgbe: fix bug in not clearing counters for X550 devices
authorDon Skidmore <[email protected]>
Wed, 10 Jun 2015 00:00:05 +0000 (17:00 -0700)
committerJeff Kirsher <[email protected]>
Wed, 10 Jun 2015 00:30:05 +0000 (17:30 -0700)
This check was missed in when this new MAC type was added.  Since
these counts can be incremented for X550 we need to clear them.

Signed-off-by: Don Skidmore <[email protected]>
Tested-by: Krishneil Singh <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c

index 21e5ae33bf7a16645ce6b0096c94c0971fd069d7..4c1c26732b67a211ebab3b307b40a0639929d4d5 100644 (file)
@@ -470,7 +470,7 @@ s32 ixgbe_clear_hw_cntrs_generic(struct ixgbe_hw *hw)
                }
        }
 
-       if (hw->mac.type == ixgbe_mac_X540) {
+       if (hw->mac.type == ixgbe_mac_X550 || hw->mac.type == ixgbe_mac_X540) {
                if (hw->phy.id == 0)
                        hw->phy.ops.identify(hw);
                hw->phy.ops.read_reg(hw, IXGBE_PCRC8ECL, MDIO_MMD_PCS, &i);
This page took 0.049299 seconds and 4 git commands to generate.