diff options
author | Emil Tantilov <emil.s.tantilov@intel.com> | 2011-07-29 02:46:15 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-08-29 04:35:28 -0400 |
commit | f3116f62cb56ef5efd172371fab688bb27529f69 (patch) | |
tree | 6d2436b6b2f82cff218bad45a15d5a3d3db36af7 | |
parent | abcc80d26cc0408cad520471a1ada6aa421921ab (diff) |
ixgbe: clear RNBC only for 82598
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 <emil.s.tantilov@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c index 90a04e2471df..91986afe969d 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | |||
@@ -225,8 +225,9 @@ s32 ixgbe_clear_hw_cntrs_generic(struct ixgbe_hw *hw) | |||
225 | IXGBE_READ_REG(hw, IXGBE_GORCH); | 225 | IXGBE_READ_REG(hw, IXGBE_GORCH); |
226 | IXGBE_READ_REG(hw, IXGBE_GOTCL); | 226 | IXGBE_READ_REG(hw, IXGBE_GOTCL); |
227 | IXGBE_READ_REG(hw, IXGBE_GOTCH); | 227 | IXGBE_READ_REG(hw, IXGBE_GOTCH); |
228 | for (i = 0; i < 8; i++) | 228 | if (hw->mac.type == ixgbe_mac_82598EB) |
229 | IXGBE_READ_REG(hw, IXGBE_RNBC(i)); | 229 | for (i = 0; i < 8; i++) |
230 | IXGBE_READ_REG(hw, IXGBE_RNBC(i)); | ||
230 | IXGBE_READ_REG(hw, IXGBE_RUC); | 231 | IXGBE_READ_REG(hw, IXGBE_RUC); |
231 | IXGBE_READ_REG(hw, IXGBE_RFC); | 232 | IXGBE_READ_REG(hw, IXGBE_RFC); |
232 | IXGBE_READ_REG(hw, IXGBE_ROC); | 233 | IXGBE_READ_REG(hw, IXGBE_ROC); |