devlink: push object register/unregister notifications into separate helpers
authorJiri Pirko <jiri@nvidia.com>
Mon, 28 Aug 2023 06:16:43 +0000 (08:16 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 28 Aug 2023 15:02:22 +0000 (08:02 -0700)
commit56e65312830ec45e3ccbc929de6f5b86bc301546
tree42e33fe9ab9e6c74d45c173248b527225f57864c
parent8be6f88b9d3fe1f6724daec4a70d6023742c9df7
devlink: push object register/unregister notifications into separate helpers

In preparations of leftover.c split to individual files, avoid need to
have object structures exposed in devl_internal.h and allow to have them
maintained in object files.

The register/unregister notifications need to know the structures
to iterate lists. To avoid the need, introduce per-object
register/unregister notification helpers and use them.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20230828061657.300667-2-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/devlink/leftover.c