]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools: ynltool: create skeleton for the C command
authorJakub Kicinski <kuba@kernel.org>
Fri, 7 Nov 2025 16:22:24 +0000 (08:22 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 11 Nov 2025 11:21:04 +0000 (12:21 +0100)
commitb02d229013aad864d89c2cbe8c713ff7da04c253
treeef4486f81ec6c6adfcbcc4350c8deeb3edc56cc6
parent8da7bea7db692e786165b71729fb68b7ff65ee56
tools: ynltool: create skeleton for the C command

Based on past discussions it seems like integration of YNL into
iproute2 is unlikely. YNL itself is not great as a C library,
since it has no backward compat (we routinely change types).

Most of the operations can be performed with the generic Python
CLI directly. There is, however, a handful of operations where
summarization of kernel output is very useful (mostly related
to stats: page-pool, qstat).

Create a command (inspired by bpftool, I think it stood the test
of time reasonably well) to be able to plug the subcommands into.

Link: https://lore.kernel.org/1754895902-8790-1-git-send-email-ernis@linux.microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Link: https://patch.msgid.link/20251107162227.980672-2-kuba@kernel.org
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/net/ynl/Makefile
tools/net/ynl/ynltool/.gitignore [new file with mode: 0644]
tools/net/ynl/ynltool/Makefile [new file with mode: 0644]
tools/net/ynl/ynltool/json_writer.c [new file with mode: 0644]
tools/net/ynl/ynltool/json_writer.h [new file with mode: 0644]
tools/net/ynl/ynltool/main.c [new file with mode: 0644]
tools/net/ynl/ynltool/main.h [new file with mode: 0644]