]> 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)
commit476f1747c4db6eb23ee41f83c615a756855acb64
tree32b5d7a853e62fe00797e67022fff1ba83e0a3aa
parentb7a7555547041072df7dc233d66f36ea8205fde8
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: c956c90d6e62 ("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