devlink: introduce couple of dumpit callbacks for split ops
authorJiri Pirko <jiri@nvidia.com>
Thu, 3 Aug 2023 11:13:35 +0000 (13:13 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Aug 2023 21:03:01 +0000 (14:03 -0700)
commit491a24872a64cbb8edf996b6113a97586702e5ca
tree532612ebb70d3de4ee1a47f8f780a1dab224b755
parentd61aedcf628ef7467d69638c3b3e5e33cafd75aa
devlink: introduce couple of dumpit callbacks for split ops

Introduce couple of 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.

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