]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit6ec8b6cd79a4360e375da99d848d63f8d4fb08b3
tree32b5d7a853e62fe00797e67022fff1ba83e0a3aa
parent53c677009581ac5dbe46c4cf667e408ebfe3049a
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: 97ff3bd37fac ("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