]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools: ynl-gen: add sub-type check
authorAsbjørn Sloth Tønnesen <ast@fiberby.net>
Mon, 15 Sep 2025 14:42:48 +0000 (14:42 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 16 Sep 2025 15:15:48 +0000 (08:15 -0700)
commit8df78d97e49816eacb7a8c4da63bf1e8be4e20ac
treef80e7e2e5c85e8946c259e9582a9aa0ce92f54e4
parentd0bdfe36d77791a67f18d18e93f3fca9a2b10240
tools: ynl-gen: add sub-type check

Add a check to verify that the sub-type is "nest", and throw an
exception if no policy could be generated, as a guard to prevent
against generating a bad policy.

This is a trivial patch with no behavioural changes intended.

Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250915144301.725949-4-ast@fiberby.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/pyynl/ynl_gen_c.py