summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/device.c
diff options
context:
space:
mode:
authorGanesh Goudar <ganeshgr@chelsio.com>2018-03-16 09:52:57 +0100
committerDavid S. Miller <davem@davemloft.net>2018-03-16 19:46:57 +0100
commit8b7372c101a5f9f38a092ab2533a75fc85c6e52a (patch)
tree0d22b2cd6471e13ca3cc8b60773b98c7762757c3 /drivers/infiniband/hw/cxgb4/device.c
parentMerge branch 'rtnl_lock_killable' (diff)
downloadlinux-8b7372c101a5f9f38a092ab2533a75fc85c6e52a.tar.xz
linux-8b7372c101a5f9f38a092ab2533a75fc85c6e52a.zip
cxgb4: notify fatal error to uld drivers
notify uld drivers if the adapter encounters fatal error. Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/device.c')
-rw-r--r--drivers/infiniband/hw/cxgb4/device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb4/device.c b/drivers/infiniband/hw/cxgb4/device.c
index 7a9d0de89d6a..e96771ddc9a7 100644
--- a/drivers/infiniband/hw/cxgb4/device.c
+++ b/drivers/infiniband/hw/cxgb4/device.c
@@ -1217,6 +1217,7 @@ static int c4iw_uld_state_change(void *handle, enum cxgb4_state new_state)
if (ctx->dev)
c4iw_remove(ctx);
break;
+ case CXGB4_STATE_FATAL_ERROR:
case CXGB4_STATE_START_RECOVERY:
pr_info("%s: Fatal Error\n", pci_name(ctx->lldi.pdev));
if (ctx->dev) {