Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Emil Tantilov and committed by
Jeff Kirsher
f3116f62 abcc80d2

+3 -2
+3 -2
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
··· 225 225 IXGBE_READ_REG(hw, IXGBE_GORCH); 226 226 IXGBE_READ_REG(hw, IXGBE_GOTCL); 227 227 IXGBE_READ_REG(hw, IXGBE_GOTCH); 228 - for (i = 0; i < 8; i++) 229 - IXGBE_READ_REG(hw, IXGBE_RNBC(i)); 228 + if (hw->mac.type == ixgbe_mac_82598EB) 229 + for (i = 0; i < 8; i++) 230 + IXGBE_READ_REG(hw, IXGBE_RNBC(i)); 230 231 IXGBE_READ_REG(hw, IXGBE_RUC); 231 232 IXGBE_READ_REG(hw, IXGBE_RFC); 232 233 IXGBE_READ_REG(hw, IXGBE_ROC);