devlink: send objects notifications during devlink reload
authorJiri Pirko <jiri@nvidia.com>
Fri, 27 Jan 2023 15:50:41 +0000 (16:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jan 2023 08:37:46 +0000 (08:37 +0000)
commita131315a47bbb5e89a3330cac69fe6ab4836f762
treefc074fcca424b129eb58fc90a83cd0e37bbfc4bd
parent7d7e9169a3ecdc14a4921b2130066ce26952c9e1
devlink: send objects notifications during devlink reload

Currently, the notifications are only sent for params. People who
introduced other objects forgot to add the reload notifications here.

To make sure all notifications happen according to existing comment,
benefit from existence of devlink_notify_register/unregister() helpers
and use them in reload code.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/devlink/leftover.c