diff options
author | 2020-01-02 21:18:09 +0530 | |
---|---|---|
committer | 2020-01-08 15:47:50 -0800 | |
commit | 6181e5cb752e5de9f56fbcee3f0206a2c51f1478 (patch) | |
tree | 3e03585cd26d71c32b796b98af76dc18406ee7f6 /include/net | |
parent | Merge branch 'reduce-open-coded-skb-next-access-for-gso-segment-walking' (diff) | |
download | linux-6181e5cb752e5de9f56fbcee3f0206a2c51f1478.tar.gz linux-6181e5cb752e5de9f56fbcee3f0206a2c51f1478.tar.bz2 linux-6181e5cb752e5de9f56fbcee3f0206a2c51f1478.zip |
devlink: add support for reporter recovery completion
It is possible that a reporter recovery completion do not finish
successfully when recovery is triggered via
devlink_health_reporter_recover as recovery could be processed in
different context. In such scenario an error is returned by driver when
recover hook is invoked and successful recovery completion is
intimated later.
Expose devlink recover done API to update recovery stats.
Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/devlink.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/devlink.h b/include/net/devlink.h index 47f87b2fcf63..453f45cc1519 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -1000,6 +1000,8 @@ int devlink_health_report(struct devlink_health_reporter *reporter, void devlink_health_reporter_state_update(struct devlink_health_reporter *reporter, enum devlink_health_reporter_state state); +void +devlink_health_reporter_recovery_done(struct devlink_health_reporter *reporter); bool devlink_is_reload_failed(const struct devlink *devlink); |