aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/qed
diff options
context:
space:
mode:
authorIgor Russkikh <irusskikh@marvell.com>2020-08-23 14:19:30 +0300
committerDavid S. Miller <davem@davemloft.net>2020-08-24 18:01:33 -0700
commit4f5a8db27eb926616500f827d9b81dc40595b0ef (patch)
treeafe5f3f4baf293c56d8f46f1bb839cbb1fb1f994 /include/linux/qed
parentqed: health reporter init deinit seq (diff)
downloadlinux-dev-4f5a8db27eb926616500f827d9b81dc40595b0ef.tar.xz
linux-dev-4f5a8db27eb926616500f827d9b81dc40595b0ef.zip
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')
-rw-r--r--include/linux/qed/qed_if.h3
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
*