]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Merge branch 'tools-ynl-policy-query-support'
authorJakub Kicinski <kuba@kernel.org>
Wed, 11 Mar 2026 02:33:07 +0000 (19:33 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Mar 2026 02:33:07 +0000 (19:33 -0700)
Jakub Kicinski says:

====================
tools: ynl: policy query support

Improve the Netlink policy support in YNL. This series grew out of
improvements to policy checking, when writing selftests I realized
that instead of doing all the policy parsing in the test we're
better off making it part of YNL itself.

Patch 1 adds pad handling, apparently we never hit pad with commonly
used families. nlctrl policy dumps use pad more frequently.
Patch 2 is a trivial refactor.
Patch 3 pays off some technical debt in terms of documentation.
The YnlFamily class is growing in size and it's quite hard to
find its members. So document it a little bit.
Patch 4 is the main dish, the implementation of get_policy(op)
in YnlFamily.
Patch 5 plugs the new functionality into the CLI.
====================

Link: https://patch.msgid.link/20260310005337.3594225-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Trivial merge