summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/net_driver.h
diff options
context:
space:
mode:
authorAlexandre Rames <arames@solarflare.com>2013-01-14 17:20:22 +0000
committerBen Hutchings <bhutchings@solarflare.com>2013-03-07 20:22:04 +0000
commit626950db84c065925ee10c2e833da265cbda8800 (patch)
treed4acb18c4b3554f80ff7a21bfeb63dd56420474f /drivers/net/ethernet/sfc/net_driver.h
parent634ab72c39b3df78ac7d6ccd4a50133059bae14f (diff)
downloadblackbird-op-linux-626950db84c065925ee10c2e833da265cbda8800.tar.gz
blackbird-op-linux-626950db84c065925ee10c2e833da265cbda8800.zip
sfc: Add AER and EEH support for Siena
The Linux side of EEH is triggered by MMIO reads, but this driver's data path does not issue any MMIO reads (except in legacy interrupt mode). Therefore add a monitor function to poll EEH periodically. When preparing to reset the device based on our own error detection, also poll EEH and defer to its recovery mechanism if appropriate. [bwh: Use a separate condition for the initial link poll; fix some style errors] Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/net_driver.h')
-rw-r--r--drivers/net/ethernet/sfc/net_driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h
index c83fe090406d..9e900817d2ab 100644
--- a/drivers/net/ethernet/sfc/net_driver.h
+++ b/drivers/net/ethernet/sfc/net_driver.h
@@ -429,6 +429,7 @@ enum nic_state {
STATE_UNINIT = 0, /* device being probed/removed or is frozen */
STATE_READY = 1, /* hardware ready and netdev registered */
STATE_DISABLED = 2, /* device disabled due to hardware errors */
+ STATE_RECOVERY = 3, /* device recovering from PCI error */
};
/*
OpenPOWER on IntegriCloud