devlink: propagate extack down to health reporter ops
During health reporter operations, driver might want to fill-up the extack message, so propagate extack down to the health reporter ops. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
402818205c
commit
e7a981050a
@@ -507,11 +507,13 @@ enum devlink_health_reporter_state {
|
||||
struct devlink_health_reporter_ops {
|
||||
char *name;
|
||||
int (*recover)(struct devlink_health_reporter *reporter,
|
||||
void *priv_ctx);
|
||||
void *priv_ctx, struct netlink_ext_ack *extack);
|
||||
int (*dump)(struct devlink_health_reporter *reporter,
|
||||
struct devlink_fmsg *fmsg, void *priv_ctx);
|
||||
struct devlink_fmsg *fmsg, void *priv_ctx,
|
||||
struct netlink_ext_ack *extack);
|
||||
int (*diagnose)(struct devlink_health_reporter *reporter,
|
||||
struct devlink_fmsg *fmsg);
|
||||
struct devlink_fmsg *fmsg,
|
||||
struct netlink_ext_ack *extack);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user