From: Don Skidmore Date: Thu, 4 Aug 2011 02:07:48 +0000 (+0000) Subject: ixgbe: add ECC warning for legacy interrupts X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0ccb974df5ac5f721491c1f07154450168b6fd0a;p=openwrt%2Fstaging%2Fblogic.git ixgbe: add ECC warning for legacy interrupts Noticed that the legacy Interrupt handler didn't have the same ECC warning as did the MSI. So this patch adds it. Signed-off-by: Don Skidmore Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c index 3f5c5a4291a6..9cd44adcea14 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c @@ -2175,8 +2175,12 @@ static irqreturn_t ixgbe_intr(int irq, void *data) switch (hw->mac.type) { case ixgbe_mac_82599EB: - case ixgbe_mac_X540: ixgbe_check_sfp_event(adapter, eicr); + /* Fall through */ + case ixgbe_mac_X540: + if (eicr & IXGBE_EICR_ECC) + e_info(link, "Received unrecoverable ECC err, please " + "reboot\n"); ixgbe_check_overtemp_event(adapter, eicr); break; default: