devlink: Implicitly set auto recover flag when registering health reporter
authorEran Ben Elisha <eranbe@mellanox.com>
Sun, 29 Mar 2020 11:05:54 +0000 (14:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 18:17:34 +0000 (11:17 -0700)
commitba7d16c7794213b591a0ea415d975858d6a7dfd8
tree1e4c5f45594a1bc3021684087a404f011fe56f38
parentc7f0d4c898cb2a3b39a33813739fe4f12ac325d8
devlink: Implicitly set auto recover flag when registering health reporter

When health reporter is registered to devlink, devlink will implicitly set
auto recover if and only if the reporter has a recover method. No reason
to explicitly get the auto recover flag from the driver.

Remove this flag from all drivers that called
devlink_health_reporter_create.

All existing health reporters set auto recovery to true if they have a
recover method.

Yet, administrator can unset auto recover via netlink command as prior to
this patch.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c
drivers/net/ethernet/mellanox/mlx5/core/health.c
drivers/net/netdevsim/health.c
include/net/devlink.h
net/core/devlink.c