]> git.ipfire.org Git - thirdparty/linux.git/commit
tools: ynl: add YNL test framework
authorHangbin Liu <liuhangbin@gmail.com>
Mon, 24 Nov 2025 02:20:55 +0000 (02:20 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 27 Nov 2025 01:58:49 +0000 (17:58 -0800)
commit308b7dee3e5c767e88bbecceff3883c8b17c55b6
tree42b47acf13ed495321401c9b87a3b6169bcfd8d0
parent651765e8d527427e1d91fb7f606c5506f437f622
tools: ynl: add YNL test framework

Add a test framework for YAML Netlink (YNL) tools, covering both CLI and
ethtool functionality. The framework includes:

1) cli: family listing, netdev, ethtool, rt-* families, and nlctrl
   operations
2) ethtool: device info, statistics, ring/coalesce/pause parameters, and
   feature gettings

The current YNL syntax is a bit obscure, and end users may not always know
how to use it. This test framework provides usage examples and also serves
as a regression test to catch potential breakages caused by future changes.

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Acked-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://patch.msgid.link/20251124022055.33389-1-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/Makefile
tools/net/ynl/tests/Makefile [new file with mode: 0644]
tools/net/ynl/tests/config [new file with mode: 0644]
tools/net/ynl/tests/test_ynl_cli.sh [new file with mode: 0755]
tools/net/ynl/tests/test_ynl_ethtool.sh [new file with mode: 0755]