projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1635520
)
devlink: don't do reporter recovery if the state is healthy
author
Jiri Pirko
<jiri@mellanox.com>
Thu, 10 Oct 2019 13:18:48 +0000
(15:18 +0200)
committer
David S. Miller
<davem@davemloft.net>
Sat, 12 Oct 2019 04:02:30 +0000
(21:02 -0700)
If reporter state is healthy, don't call into a driver for recover and
don't increase recovery count.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c
patch
|
blob
|
history
diff --git
a/net/core/devlink.c
b/net/core/devlink.c
index eb0a22f0588747c04a1b8bbf676d118942fbef48..95887462eecfbcf7faf9cabbfb970ea52c03e4cc 100644
(file)
--- a/
net/core/devlink.c
+++ b/
net/core/devlink.c
@@
-4851,6
+4851,9
@@
devlink_health_reporter_recover(struct devlink_health_reporter *reporter,
{
int err;
+ if (reporter->health_state == DEVLINK_HEALTH_REPORTER_STATE_HEALTHY)
+ return 0;
+
if (!reporter->ops->recover)
return -EOPNOTSUPP;