summaryrefslogtreecommitdiffstats
path: root/drivers/net/netdevsim
diff options
context:
space:
mode:
authorEran Ben Elisha <eranbe@mellanox.com>2020-03-29 14:05:53 +0300
committerDavid S. Miller <davem@davemloft.net>2020-03-30 11:17:34 -0700
commitc7f0d4c898cb2a3b39a33813739fe4f12ac325d8 (patch)
tree96e729465fe1425ecec4aff713a7bd6207eeb4be /drivers/net/netdevsim
parent62582a7ee78364c6106d09d5e0f1dc7f564be887 (diff)
downloadlinux-c7f0d4c898cb2a3b39a33813739fe4f12ac325d8.tar.bz2
netdevsim: Change dummy reporter auto recover default
Health reporters should be registered with auto recover set to true. Align dummy reporter behaviour with that, as in later patch the option to set auto recover behaviour will be removed. In addition, align netdevsim selftest to the new default value. Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netdevsim')
-rw-r--r--drivers/net/netdevsim/health.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/netdevsim/health.c b/drivers/net/netdevsim/health.c
index ba8d9ad60feb..9ff345d5524b 100644
--- a/drivers/net/netdevsim/health.c
+++ b/drivers/net/netdevsim/health.c
@@ -278,7 +278,7 @@ int nsim_dev_health_init(struct nsim_dev *nsim_dev, struct devlink *devlink)
health->dummy_reporter =
devlink_health_reporter_create(devlink,
&nsim_dev_dummy_reporter_ops,
- 0, false, health);
+ 0, true, health);
if (IS_ERR(health->dummy_reporter)) {
err = PTR_ERR(health->dummy_reporter);
goto err_empty_reporter_destroy;