]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
devlink: Modify reply of DEVLINK_CMD_HEALTH_REPORTER_GET
authorAya Levin <ayal@mellanox.com>
Thu, 21 Feb 2019 12:12:02 +0000 (14:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Feb 2019 18:38:51 +0000 (10:38 -0800)
commit574b1e1f457c631d356e55aaef26ee638a96d548
tree4b256bff1f8a52ddfbec374bb5321d3d883643a1
parent54719527fd06e80fce52b98537414035cd21e8d4
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>
net/core/devlink.c