summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/devlink.h
diff options
context:
space:
mode:
authorEran Ben Elisha2019-01-17 22:59:17 +0100
committerDavid S. Miller2019-01-18 23:51:23 +0100
commit12bd0dcefe88782ac1c9fff632958dd1b71d27e5 (patch)
treebc926ff94731344b9283b6d1dfec0faad13fce20 /include/uapi/linux/devlink.h
parentdevlink: Add health diagnose command (diff)
downloadkernel-qcow2-linux-12bd0dcefe88782ac1c9fff632958dd1b71d27e5.tar.gz
kernel-qcow2-linux-12bd0dcefe88782ac1c9fff632958dd1b71d27e5.tar.xz
kernel-qcow2-linux-12bd0dcefe88782ac1c9fff632958dd1b71d27e5.zip
devlink: Add health dump {get,clear} commands
Add devlink health dump commands, in order to run an dump operation over a specific reporter. The supported operations are dump_get in order to get last saved dump (if not exist, dump now) and dump_clear to clear last saved dump. It is expected from driver's callback for diagnose command to fill it via the buffer descriptors API. Devlink will parse it and convert it to netlink nla API in order to pass it to the user. Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Reviewed-by: Moshe Shemesh <moshe@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/devlink.h')
-rw-r--r--include/uapi/linux/devlink.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h
index 51b4d7612cf8..6b26bb2ce4dc 100644
--- a/include/uapi/linux/devlink.h
+++ b/include/uapi/linux/devlink.h
@@ -93,6 +93,8 @@ enum devlink_command {
DEVLINK_CMD_HEALTH_REPORTER_SET,
DEVLINK_CMD_HEALTH_REPORTER_RECOVER,
DEVLINK_CMD_HEALTH_REPORTER_DIAGNOSE,
+ DEVLINK_CMD_HEALTH_REPORTER_DUMP_GET,
+ DEVLINK_CMD_HEALTH_REPORTER_DUMP_CLEAR,
/* add new commands above here */
__DEVLINK_CMD_MAX,