devlink: Add health set command
authorEran Ben Elisha <eranbe@mellanox.com>
Thu, 17 Jan 2019 21:59:14 +0000 (23:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jan 2019 22:51:22 +0000 (14:51 -0800)
commit6f9d56132eb6d2603d4273cfc65bed914ec47acb
tree135a29a20cbcbf2735b1de115a13f1499af23e80
parentff253fedab961b22117a73ab808fcfa9e6852b50
devlink: Add health set command

Add devlink health set command, in order to set configuration parameters
for a specific reporter.
Supported parameters are:
- graceful_period: Time interval between auto recoveries (in msec)
- auto_recover: Determines if the devlink shall execute recover upon
receiving error for the reporter

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>
include/uapi/linux/devlink.h
net/core/devlink.c