]> git.ipfire.org Git - thirdparty/iproute2.git/commit
devlink: implement dump selector for devlink objects show commands
authorJiri Pirko <jiri@nvidia.com>
Wed, 6 Sep 2023 11:11:13 +0000 (13:11 +0200)
committerDavid Ahern <dsahern@kernel.org>
Mon, 11 Sep 2023 15:16:51 +0000 (09:16 -0600)
commit70faecdca8f5187d2bc5ee95e4b6a01a50a2c916
treeae69e1e2fe5440a25b619a9c8327707ae0022294
parent20b299a3ec3520b1f382f31c08427117493efa59
devlink: implement dump selector for devlink objects show commands

Introduce a new helper dl_argv_parse_with_selector() to be used
by show() functions instead of dl_argv().

Implement it to check if all needed options got get commands are
specified. In case they are not, ask kernel for dump passing only
the options (attributes) that are present, creating sort of partial
key to instruct kernel to do partial dump.

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