diff options
author | Igor Russkikh <irusskikh@marvell.com> | 2020-08-23 14:19:30 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-25 04:01:33 +0300 |
commit | 4f5a8db27eb926616500f827d9b81dc40595b0ef (patch) | |
tree | afe5f3f4baf293c56d8f46f1bb839cbb1fb1f994 /include/linux/qed/qed_if.h | |
parent | 9524067b9a91dce2a096a0de7727c217495e3d2e (diff) | |
download | linux-4f5a8db27eb926616500f827d9b81dc40595b0ef.tar.xz |
qed: use devlink logic to report errors
Use devlink_health_report to push error indications.
We implement this in qede via callback function to make it possible
to reuse the same for other drivers sitting on top of qed in future.
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 'include/linux/qed/qed_if.h')
-rw-r--r-- | include/linux/qed/qed_if.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/qed/qed_if.h b/include/linux/qed/qed_if.h index 30fe06fe06a0..a75533de9186 100644 --- a/include/linux/qed/qed_if.h +++ b/include/linux/qed/qed_if.h @@ -906,6 +906,9 @@ struct qed_common_ops { int (*dbg_all_data_size) (struct qed_dev *cdev); + int (*report_fatal_error)(struct devlink *devlink, + enum qed_hw_err_type err_type); + /** * @brief can_link_change - can the instance change the link or not * |