diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2017-01-13 21:55:26 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-16 13:35:30 -0500 |
commit | 3be0679b4a91930ca8d0c8a66b39058a698e70fe (patch) | |
tree | e0d675d3ee2862bf60515a340b8bc1cd085bd624 /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | |
parent | 51c89e6a3bf68d544e29b234c2cef6ffb73277a1 (diff) | |
download | blackbird-op-linux-3be0679b4a91930ca8d0c8a66b39058a698e70fe.tar.gz blackbird-op-linux-3be0679b4a91930ca8d0c8a66b39058a698e70fe.zip |
cxgb4: Shutdown adapter if firmware times out or errors out
Perform an emergency shutdown of the adapter and stop it from
continuing any further communication on the ports or DMA to the
host. This is typically used when the adapter and/or firmware
have crashed and we want to prevent any further accidental
communication with the rest of the world. This will also force
the port Link Status to go down -- if register writes work --
which should help our peers figure out that we're down.
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h index ad0096e74813..ccb455f14d08 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h @@ -1501,6 +1501,7 @@ int t4_prep_fw(struct adapter *adap, struct fw_info *fw_info, const u8 *fw_data, unsigned int fw_size, struct fw_hdr *card_fw, enum dev_state state, int *reset); int t4_prep_adapter(struct adapter *adapter); +int t4_shutdown_adapter(struct adapter *adapter); enum t4_bar2_qtype { T4_BAR2_QTYPE_EGRESS, T4_BAR2_QTYPE_INGRESS }; int t4_bar2_sge_qregs(struct adapter *adapter, |