]> git.ipfire.org Git - thirdparty/iproute2.git/commit
devlink: extend pr_out_nested_handle() to print object
authorJiri Pirko <jiri@nvidia.com>
Tue, 7 Nov 2023 08:06:04 +0000 (09:06 +0100)
committerDavid Ahern <dsahern@kernel.org>
Sat, 11 Nov 2023 17:31:24 +0000 (17:31 +0000)
commite98d5084f7cdaec85d34dd75bb03bed57e284e83
tree41f7821ce5303aa0f6cbaa8d855911eb01ab7993
parentfb47796cd6069be0075258b03b94bac09571825c
devlink: extend pr_out_nested_handle() to print object

For existing pr_out_nested_handle() user (line card), the output stays
the same. For the new users, introduce __pr_out_nested_handle()
to allow to print devlink instance as object allowing to carry
attributes in it (like netns).

Note that as __pr_out_handle_start() and pr_out_handle_end() are newly
used, the function is moved below the definitions.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
devlink/devlink.c