]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Add auto dump flag to health reporter
authorEran Ben Elisha <eranbe@mellanox.com>
Sun, 29 Mar 2020 11:05:55 +0000 (14:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 18:17:34 +0000 (11:17 -0700)
commit450bdc96f44be48da10dd60395a9f733f26b8b8e
treee4ca68c24b086e6d01ad31640342b1a3beb98d13
parent052c9b5e33af64e7c4602e3c6c0bee55f0b7134b
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.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/devlink.h
net/core/devlink.c