History

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 devlink fmsg API. Devlink will parse it and convert it to netlink nla API in order to pass it to the user.

Eran Ben Elisha committed 7 years ago

Commit 35455e21 parent fca42a22 files · +65 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/devlink.h+2−0
@@ -100,6 +100,8 @@ enum devlink_command { · 99 unmodified lines
100 DEVLINK_CMD_HEALTH_REPORTER_SET,100 DEVLINK_CMD_HEALTH_REPORTER_SET,
101 DEVLINK_CMD_HEALTH_REPORTER_RECOVER,101 DEVLINK_CMD_HEALTH_REPORTER_RECOVER,
102 DEVLINK_CMD_HEALTH_REPORTER_DIAGNOSE,102 DEVLINK_CMD_HEALTH_REPORTER_DIAGNOSE,
103 DEVLINK_CMD_HEALTH_REPORTER_DUMP_GET,
104 DEVLINK_CMD_HEALTH_REPORTER_DUMP_CLEAR,
103 105
104 /* add new commands above here */106 /* add new commands above here */
105 __DEVLINK_CMD_MAX,107 __DEVLINK_CMD_MAX,