devlink: add split ops generated according to spec
authorJiri Pirko <jiri@nvidia.com>
Thu, 3 Aug 2023 11:13:38 +0000 (13:13 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Aug 2023 21:03:01 +0000 (14:03 -0700)
commit6b7c486cae8136050df8fca2fbebedb685c49b2d
treed3258c65b0a997c48a6065254f489433dc811285
parent759f661012d19e61e8d7e8d2bc8d4395ba45a689
devlink: add split ops generated according to spec

Improve the existing devlink spec in order to serve as a source for
generation of valid devlink split ops for the existing commands.
Add the generated sources.

Node that the policies are narrowed down only to the attributes that
are actually parsed. The dont-validate-strict parsing policy makes sure
that other possibly passed garbage attributes from userspace are
ignored during validation.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20230803111340.1074067-11-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/devlink.yaml
net/devlink/Makefile
net/devlink/netlink_gen.c [new file with mode: 0644]
net/devlink/netlink_gen.h [new file with mode: 0644]