History

devlink: Add auto dump flag to health reporter

On low memory system, run time dumps can consume too much memory. Add administrator ability to disable auto dumps per reporter as part of the error flow handle routine. This attribute is not relevant while executing DEVLINK_CMD_HEALTH_REPORTER_DUMP_GET. By default, auto dump is activated for any reporter that has a dump method, as part of the reporter registration to devlink.

Eran Ben Elisha committed 6 years ago

Commit 48bb52c1 parent ba7d16c2 files · +24 −4Browse files

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

Unified · Split

include/uapi/linux/devlink.h+2−0
@@ -429,6 +429,8 @@ enum devlink_attr { · 428 unmodified lines
429 DEVLINK_ATTR_NETNS_FD, /* u32 */429 DEVLINK_ATTR_NETNS_FD, /* u32 */
430 DEVLINK_ATTR_NETNS_PID, /* u32 */430 DEVLINK_ATTR_NETNS_PID, /* u32 */
431 DEVLINK_ATTR_NETNS_ID, /* u32 */431 DEVLINK_ATTR_NETNS_ID, /* u32 */
432
433 DEVLINK_ATTR_HEALTH_REPORTER_AUTO_DUMP, /* u8 */
432 /* add new attributes above here, update the policy in devlink.c */434 /* add new attributes above here, update the policy in devlink.c */
433 435
434 __DEVLINK_ATTR_MAX,436 __DEVLINK_ATTR_MAX,