devlink: Fix reporter's recovery condition
authorAya Levin <ayal@mellanox.com>
Mon, 4 May 2020 08:27:46 +0000 (11:27 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2020 17:40:39 +0000 (10:40 -0700)
commitbea0c5c942d3b4e9fb6ed45f6a7de74c6b112437
treeceebd12c562cadbe733584e955fa73a20db987f5
parentf42234ffd531ca6b13d9da02faa60b72eccf8334
devlink: Fix reporter's recovery condition

Devlink health core conditions the reporter's recovery with the
expiration of the grace period. This is not relevant for the first
recovery. Explicitly demand that the grace period will only apply to
recoveries other than the first.

Fixes: c8e1da0bf923 ("devlink: Add health report functionality")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Reviewed-by: Moshe Shemesh <moshe@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c