linux/Documentation/netlink
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
..
specs Documentation: netlink: add a YAML spec for mptcp 2023-10-24 13:00:31 -07:00
genetlink-c.yaml netlink: specs: support conditional operations 2023-10-26 19:42:15 -07:00
genetlink-legacy.yaml netlink: specs: support conditional operations 2023-10-26 19:42:15 -07:00
genetlink.yaml netlink: specs: support conditional operations 2023-10-26 19:42:15 -07:00
netlink-raw.yaml tools: ynl-gen: add support for exact-len validation 2023-10-24 13:00:31 -07:00