Jiri Pirko
05f0431bb9
netlink: specs: devlink: add forgotten port function caps enum values
...
Add two enum values that the blamed commit omitted.
Fixes: f2f9dd164d ("netlink: specs: devlink: add the remaining command to generate complete split_ops")
Signed-off-by: Jiri Pirko <jiri@nvidia.com >
Link: https://lore.kernel.org/r/20231030161750.110420-1-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2023-11-01 22:13:43 -07:00
Jiri Pirko
f2f9dd164d
netlink: specs: devlink: add the remaining command to generate complete split_ops
...
Currently, some of the commands are not described in devlink yaml file
and are manually filled in net/devlink/netlink.c in small_ops. To make
all part of split_ops, add definitions of the rest of the commands
alongside with needed attributes and enums.
Note that this focuses on the kernel side. The requests are fully
described in order to generate split_op alongside with policies.
Follow-up will describe the replies in order to make the userspace
helpers complete.
Signed-off-by: Jiri Pirko <jiri@nvidia.com >
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com >
Link: https://lore.kernel.org/r/20231021112711.660606-9-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2023-10-23 16:16:32 -07:00
Jiri Pirko
c48066b0cc
netlink: specs: devlink: remove reload-action from devlink-get cmd reply
...
devlink-get command does not contain reload-action attr in reply.
Remove it.
Signed-off-by: Jiri Pirko <jiri@nvidia.com >
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com >
Link: https://lore.kernel.org/r/20231021112711.660606-5-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2023-10-23 16:12:46 -07:00
Jiri Pirko
0f4d44f6ee
netlink: specs: devlink: fix reply command values
...
Make sure that the command values used for replies are correct. This is
only affecting generated userspace helpers, no change on kernel code.
Fixes: 7199c86247 ("netlink: specs: devlink: add commands that do per-instance dump")
Signed-off-by: Jiri Pirko <jiri@nvidia.com >
Link: https://lore.kernel.org/r/20231012115811.298129-1-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2023-10-13 17:27:27 -07:00
Jiri Pirko
0149bca172
netlink: specs: devlink: extend health reporter dump attributes by port index
...
Allow user to pass port index for health reporter dump request.
Re-generate the related code.
Signed-off-by: Jiri Pirko <jiri@nvidia.com >
Acked-by: Jakub Kicinski <kuba@kernel.org >
Link: https://lore.kernel.org/r/20230811155714.1736405-14-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2023-08-14 11:47:25 -07:00
Jiri Pirko
34493336e7
netlink: specs: devlink: extend per-instance dump commands to accept instance attributes
...
Extend per-instance dump command definitions to accept instance
attributes. Allow parsing of devlink handle attributes so they could
be used for instance selection.
Re-generate the related code.
Signed-off-by: Jiri Pirko <jiri@nvidia.com >
Acked-by: Jakub Kicinski <kuba@kernel.org >
Link: https://lore.kernel.org/r/20230811155714.1736405-12-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2023-08-14 11:47:25 -07:00
Jiri Pirko
7199c86247
netlink: specs: devlink: add commands that do per-instance dump
...
Add the definitions for the commands that do per-instance dump
and re-generate the related code.
Signed-off-by: Jiri Pirko <jiri@nvidia.com >
Acked-by: Jakub Kicinski <kuba@kernel.org >
Link: https://lore.kernel.org/r/20230811155714.1736405-8-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2023-08-14 11:47:25 -07:00
Jiri Pirko
759f661012
netlink: specs: devlink: add info-get dump op
...
Add missing dump op for info-get command and re-generate related
devlink-user.[ch] code.
Signed-off-by: Jiri Pirko <jiri@nvidia.com >
Reviewed-by: Jakub Kicinski <kuba@kernel.org >
Link: https://lore.kernel.org/r/20230803111340.1074067-10-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2023-08-04 14:03:01 -07:00
Jakub Kicinski
7234415b8f
tools: ynl: regen: regenerate the if ladders
...
Renegate the code to combine } and else and use tmp variable
to store type.
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2023-06-09 14:40:31 -07:00
Jakub Kicinski
9b52fd4b63
tools: ynl: regen: cleanup user space header includes
...
Remove unnecessary includes.
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2023-06-09 14:40:31 -07:00
Jakub Kicinski
5d1a30eb98
tools: ynl: generate code for the devlink family
...
Admittedly the devlink.yaml spec is fairly limitted,
it only covers basic device get and info-get ops.
That's sufficient to be useful (monitoring FW versions
in the fleet). Plus it gives us a chance to exercise
deep nesting and directional messaging in YNL.
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2023-06-08 14:01:10 -07:00