]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ixgbe: add ECC warning for legacy interrupts
authorDon Skidmore <donald.c.skidmore@intel.com>
Thu, 4 Aug 2011 02:07:48 +0000 (02:07 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 14:12:07 +0000 (22:12 +0800)
Noticed that the legacy Interrupt handler didn't have the same
ECC warning as did the MSI.  So this patch adds it.

(cherry picked from commit 0ccb974df5ac5f721491c1f07154450168b6fd0a)
Signed-off-by: Don Skidmore <donald.c.skidmore>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_main.c

index 36e478f228b5f1d550c1b703f5c5be0ba9987f6d..8026e1e1fddaed19277c19771d998dfff1474da3 100644 (file)
@@ -2174,8 +2174,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: