]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Add health recover notifications on devlink flows
authorMoshe Shemesh <moshe@mellanox.com>
Thu, 23 Jan 2020 17:57:13 +0000 (19:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jan 2020 09:34:42 +0000 (10:34 +0100)
commitb7c8e2efa13856642462ccc9887b6fae5d7d8495
tree32b5d7a853e62fe00797e67022fff1ba83e0a3aa
parent38b28b57bc37b4459db48f3f00ccdda4ebd0493a
devlink: Add health recover notifications on devlink flows

Devlink health recover notifications were added only on driver direct
updates of health_state through devlink_health_reporter_state_update().
Add notifications on updates of health_state by devlink flows of report
and recover.

Moved functions devlink_nl_health_reporter_fill() and
devlink_recover_notify() to avoid forward declaration.

Fixes: c6c87cd20a7b ("devlink: add devink notification when reporter update health state")
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c