OSDN Git Service

devlink: introduce dumpit callbacks for split ops
authorJiri Pirko <jiri@nvidia.com>
Fri, 11 Aug 2023 15:57:06 +0000 (17:57 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 14 Aug 2023 18:47:24 +0000 (11:47 -0700)
commit24c8e56d4f983527cc5e1f6d771fef8ec7ce352e
tree257b68b74003d5f8e59e70d60988a553c318edd0
parent8fa995ad1f7f8f615b479edcf540cc12fe7b87ba
devlink: introduce dumpit callbacks for split ops

Introduce dumpit callbacks for generated split ops. Have them
as a thin wrapper around iteration function and allow to pass dump_one()
function pointer directly without need to store in devlink_cmd structs.

Note that the function prototypes are temporary until the generated ones
will replace them in a follow-up patch.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20230811155714.1736405-6-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/devlink/dev.c
net/devlink/devl_internal.h
net/devlink/health.c
net/devlink/leftover.c
net/devlink/netlink.c