diff options
author | Jiri Pirko <jiri@nvidia.com> | 2020-09-15 11:40:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-15 15:57:16 -0700 |
commit | e2ce94dc1d89e0f76ddd202cea72e0f505083d0a (patch) | |
tree | 1689b8c6b8bee6872b4e7653260d88cd107350c9 /include/net/devlink.h | |
parent | 191c0c22b5c7acbe9670442293951229952fe677 (diff) | |
download | lwn-e2ce94dc1d89e0f76ddd202cea72e0f505083d0a.tar.gz lwn-e2ce94dc1d89e0f76ddd202cea72e0f505083d0a.zip |
devlink: introduce the health reporter test command
Introduce a test command for health reporters. User might use this
command to trigger test event on a reporter if the reporter supports it.
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/devlink.h')
-rw-r--r-- | include/net/devlink.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/devlink.h b/include/net/devlink.h index eaec0a8cc5ef..48b1c1ef1ebd 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -566,6 +566,7 @@ enum devlink_health_reporter_state { * @dump: callback to dump an object * if priv_ctx is NULL, run a full dump * @diagnose: callback to diagnose the current status + * @test: callback to trigger a test event */ struct devlink_health_reporter_ops { @@ -578,6 +579,8 @@ struct devlink_health_reporter_ops { int (*diagnose)(struct devlink_health_reporter *reporter, struct devlink_fmsg *fmsg, struct netlink_ext_ack *extack); + int (*test)(struct devlink_health_reporter *reporter, + struct netlink_ext_ack *extack); }; /** |