]> git.proxmox.com Git - mirror_iproute2.git/commit
devlink: Add devlink health set command
authorAya Levin <ayal@mellanox.com>
Thu, 28 Feb 2019 12:13:03 +0000 (14:13 +0200)
committerDavid Ahern <dsahern@gmail.com>
Thu, 28 Feb 2019 15:56:16 +0000 (07:56 -0800)
commitb18d89195b164b3eee5b7090686fe4d4fad3248f
tree30ded34d40e8e4cb80d34e27ed91ba17275a9e1d
parent04b583d0fff3496c5f5cd9aa3b2fb1fc23398909
devlink: Add devlink health set command

Add devlink set command which enables the user to configure parameters
related to the devlink health mechanism per reporter.
1) grace_period [msec] time interval between auto recoveries.
2) auto_recover [true/false] whether the devlink should execute automatic
recover on error.
Add a helper function to retrieve a boolean value as an input parameter.
Example:
$ devlink health set pci/0000:00:09.0 reporter tx grace_period 3500
$ devlink health set pci/0000:00:09.0 reporter tx auto_recover false

Signed-off-by: Aya Levin <ayal@mellanox.com>
Reviewed-by: Moshe Shemesh <moshe@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
devlink/devlink.c