linux/tools/net/ynl
Jakub Kicinski bc30bb88ff netlink: specs: support conditional operations
Page pool code is compiled conditionally, but the operations
are part of the shared netlink family. We can handle this
by reporting empty list of pools or -EOPNOTSUPP / -ENOSYS
but the cleanest way seems to be removing the ops completely
at compilation time. That way user can see that the page
pool ops are not present using genetlink introspection.
Same way they'd check if the kernel is "new enough" to
support the ops.

Extend the specs with the ability to specify the config
condition under which op (and its policies, etc.) should
be hidden.

Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20231025162253.133159-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-10-26 19:42:15 -07:00
..
generated Merge branch 'devlink-finish-conversion-to-generated-split_ops' 2023-10-23 16:16:52 -07:00
lib Merge branch 'devlink-finish-conversion-to-generated-split_ops' 2023-10-23 16:16:52 -07:00
samples tools: ynl: use uAPI include magic for samples 2023-10-04 17:33:54 -07:00
cli.py tools/net/ynl: Add support for create flags 2023-08-27 17:17:10 -07:00
ethtool.py tools: ynl: Rename ethtool to ethtool.py 2023-04-13 22:18:29 -07:00
Makefile tools: ynl: don't regen on every make 2023-10-04 17:33:54 -07:00
Makefile.deps tools: ynl: improve the direct-include header guard logic 2023-06-22 19:47:02 -07:00
requirements.txt tools: ynl: add the Python requirements.txt file 2023-03-24 19:11:02 -07:00
ynl-gen-c.py netlink: specs: support conditional operations 2023-10-26 19:42:15 -07:00
ynl-regen.sh ynl: regenerate all headers 2023-07-28 09:33:12 -07:00