diff options
author | Ganesh Goudar <ganeshgr@chelsio.com> | 2018-03-16 11:52:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-16 21:46:57 +0300 |
commit | 8b7372c101a5f9f38a092ab2533a75fc85c6e52a (patch) | |
tree | 0d22b2cd6471e13ca3cc8b60773b98c7762757c3 /drivers/infiniband/hw/cxgb4 | |
parent | ce627a1b10e6dd506fad4655588d7d75cd86e41c (diff) | |
download | linux-8b7372c101a5f9f38a092ab2533a75fc85c6e52a.tar.xz |
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')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/device.c | 1 |
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) { |