diff options
author | Aya Levin <ayal@mellanox.com> | 2019-02-21 14:12:02 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-21 10:38:51 -0800 |
commit | 574b1e1f457c631d356e55aaef26ee638a96d548 (patch) | |
tree | 4b256bff1f8a52ddfbec374bb5321d3d883643a1 /net/nsh/nsh.c | |
parent | 54719527fd06e80fce52b98537414035cd21e8d4 (diff) |
devlink: Modify reply of DEVLINK_CMD_HEALTH_REPORTER_GET
Avoid sending attributes related to recovery:
DEVLINK_ATTR_HEALTH_REPORTER_GRACEFUL_PERIOD and
DEVLINK_ATTR_HEALTH_REPORTER_AUTO_RECOVER in reply to
DEVLINK_CMD_HEALTH_REPORTER_GET for a reporter which didn't register a
recover operation.
These parameters can't be configured on a reporter that did not provide
a recover operation, thus not needed to return them.
Fixes: 7afe335a8bed ("devlink: Add health get command")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/nsh/nsh.c')
0 files changed, 0 insertions, 0 deletions