]> Git Repo - linux.git/commitdiff
ixgbe: clear RNBC only for 82598
authorEmil Tantilov <[email protected]>
Fri, 29 Jul 2011 06:46:15 +0000 (06:46 +0000)
committerJeff Kirsher <[email protected]>
Mon, 29 Aug 2011 08:35:28 +0000 (01:35 -0700)
RNBC (0x03FC0) is only for 82598 and has different meaning
on newer HW. Make sure to only clear it for 82598.

Signed-off-by: Emil Tantilov <[email protected]>
Tested-by: Phil Schmitt <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c

index 90a04e2471dfea367c396fb5e900981ba1bbb8a4..91986afe969d13120050287349610cd068baa879 100644 (file)
@@ -225,8 +225,9 @@ s32 ixgbe_clear_hw_cntrs_generic(struct ixgbe_hw *hw)
        IXGBE_READ_REG(hw, IXGBE_GORCH);
        IXGBE_READ_REG(hw, IXGBE_GOTCL);
        IXGBE_READ_REG(hw, IXGBE_GOTCH);
-       for (i = 0; i < 8; i++)
-               IXGBE_READ_REG(hw, IXGBE_RNBC(i));
+       if (hw->mac.type == ixgbe_mac_82598EB)
+               for (i = 0; i < 8; i++)
+                       IXGBE_READ_REG(hw, IXGBE_RNBC(i));
        IXGBE_READ_REG(hw, IXGBE_RUC);
        IXGBE_READ_REG(hw, IXGBE_RFC);
        IXGBE_READ_REG(hw, IXGBE_ROC);
This page took 0.062433 seconds and 4 git commands to generate.