ynl-gen-c.py: render netlink policies static for split ops
authorJiri Pirko <jiri@nvidia.com>
Thu, 3 Aug 2023 11:13:32 +0000 (13:13 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Aug 2023 21:03:01 +0000 (14:03 -0700)
commitfa8ba3502ade9e4a8e447066b0d94261fbbe1906
treec7ebf7d8fdc0926819e7ba676653c03d17d6dd96
parenteab7be688b4416588d19ee1fe5edbfa79a639b42
ynl-gen-c.py: render netlink policies static for split ops

When policies are rendered for split ops, they are consumed in the same
file. No need to expose them for user outside, make them static.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20230803111340.1074067-5-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/ynl-gen-c.py