diff options
author | Igor Russkikh <irusskikh@marvell.com> | 2020-08-23 14:19:31 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-24 18:01:33 -0700 |
commit | b228cb1602ead97be5449cb87b68addea0e8243c (patch) | |
tree | 21cfdad20164251b7a85431b70658db7f97cdd8c /drivers/net/ethernet/qlogic/qed/qed.h | |
parent | 4f5a8db27eb926616500f827d9b81dc40595b0ef (diff) | |
download | linux-b228cb1602ead97be5449cb87b68addea0e8243c.tar.gz linux-b228cb1602ead97be5449cb87b68addea0e8243c.tar.bz2 linux-b228cb1602ead97be5449cb87b68addea0e8243c.zip |
qed*: make use of devlink recovery infrastructure
Remove forcible recovery trigger and put it as a normal devlink
callback.
This allows user to enable/disable it via
devlink health set pci/0000:03:00.0 reporter fw_fatal auto_recover false
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: Alexander Lobakin <alobakin@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed.h')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed.h b/drivers/net/ethernet/qlogic/qed/qed.h index ccd789eeda3e..f34b25a79449 100644 --- a/drivers/net/ethernet/qlogic/qed/qed.h +++ b/drivers/net/ethernet/qlogic/qed/qed.h @@ -981,6 +981,7 @@ void qed_bw_update(struct qed_hwfn *hwfn, struct qed_ptt *ptt); u32 qed_unzip_data(struct qed_hwfn *p_hwfn, u32 input_len, u8 *input_buf, u32 max_size, u8 *unzip_buf); +int qed_recovery_process(struct qed_dev *cdev); void qed_schedule_recovery_handler(struct qed_hwfn *p_hwfn); void qed_hw_error_occurred(struct qed_hwfn *p_hwfn, enum qed_hw_err_type err_type); |