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 /drivers/net/ethernet/qlogic/qed/qed_main.c | |
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 'drivers/net/ethernet/qlogic/qed/qed_main.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_main.c b/drivers/net/ethernet/qlogic/qed/qed_main.c index d1a559ccf516..a64d594f9294 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_main.c +++ b/drivers/net/ethernet/qlogic/qed/qed_main.c @@ -3007,6 +3007,7 @@ const struct qed_common_ops qed_common_ops_pass = { .update_msglvl = &qed_init_dp, .devlink_register = qed_devlink_register, .devlink_unregister = qed_devlink_unregister, + .report_fatal_error = qed_report_fatal_error, .dbg_all_data = &qed_dbg_all_data, .dbg_all_data_size = &qed_dbg_all_data_size, .chain_alloc = &qed_chain_alloc, |