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>
This commit is contained in:

committed by
David S. Miller

parent
9524067b9a
commit
4f5a8db27e
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user