diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-10-10 15:18:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-11 21:02:30 -0700 |
commit | e7a981050a7fb9a14b652365c00d9c5a025704ce (patch) | |
tree | a8bbfbc32dc355463aec6d0ef0264a3cc30ea51e /include | |
parent | 402818205c9ecdfd922fdfa58fb113f60fdda523 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/devlink.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/net/devlink.h b/include/net/devlink.h index 4095657fc23f..6bf3b9e0595a 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -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); }; /** |