]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
devlink: Move health reporter recovery abort logic to a separate function
authorShahar Shitrit <shshitrit@nvidia.com>
Sun, 24 Aug 2025 08:43:51 +0000 (11:43 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 27 Aug 2025 00:24:16 +0000 (17:24 -0700)
commit20597fb9436e2e2372ddf782f0bb5ecbe3481068
tree520b78e641de285ba41b46692d324977dacf839a
parentd2b007374551ac09db16badde575cdd698f6fc92
devlink: Move health reporter recovery abort logic to a separate function

Extract the health reporter recovery abort logic into a separate
function devlink_health_recover_abort().
The function encapsulates the conditions for aborting recovery:
- When auto-recovery is disabled
- When previous error wasn't recovered
- When within the grace period after last recovery

Signed-off-by: Shahar Shitrit <shshitrit@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Link: https://patch.msgid.link/20250824084354.533182-3-mbloch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/devlink/health.c