023289b4 | 25-Aug-2023 |
Donald Hunter <donald.hunter@gmail.com> |
doc/netlink: Add spec for rt route messages
Add schema for rt route with support for getroute, newroute and delroute.
Routes can be dumped with filter attributes like this:
./tools/net/ynl/cli.py
doc/netlink: Add spec for rt route messages
Add schema for rt route with support for getroute, newroute and delroute.
Routes can be dumped with filter attributes like this:
./tools/net/ynl/cli.py \ --spec Documentation/netlink/specs/rt_route.yaml \ --dump getroute --json '{"rtm-family": 2, "rtm-table": 254}'
Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Link: https://lore.kernel.org/r/20230825122756.7603-13-donald.hunter@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
b2f63d90 | 25-Aug-2023 |
Donald Hunter <donald.hunter@gmail.com> |
doc/netlink: Add spec for rt link messages
Add schema for rt link with support for newlink, dellink, getlink, setlink and getstats.
A dummy link can be created like this:
sudo ./tools/net/ynl/cli.
doc/netlink: Add spec for rt link messages
Add schema for rt link with support for newlink, dellink, getlink, setlink and getstats.
A dummy link can be created like this:
sudo ./tools/net/ynl/cli.py \ --spec Documentation/netlink/specs/rt_link.yaml \ --do newlink --create \ --json '{"ifname": "dummy0", "linkinfo": {"kind": "dummy"}}'
For example, offload stats can be fetched like this:
./tools/net/ynl/cli.py \ --spec Documentation/netlink/specs/rt_link.yaml \ --dump getstats --json '{ "filter-mask": 8 }'
Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Link: https://lore.kernel.org/r/20230825122756.7603-12-donald.hunter@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
6b7c486c | 03-Aug-2023 |
Jiri Pirko <jiri@nvidia.com> |
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 genera
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>
show more ...
|
68335713 | 09-Jun-2023 |
Jakub Kicinski <kuba@kernel.org> |
netlink: specs: ethtool: mark pads as pads
Pad is a separate type. Even though in practice they can only be a u32 the value should be discarded.
Signed-off-by: Jakub Kicinski <kuba@kernel.org> Sign
netlink: specs: ethtool: mark pads as pads
Pad is a separate type. Even though in practice they can only be a u32 the value should be discarded.
Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
709d0c3b | 09-Jun-2023 |
Jakub Kicinski <kuba@kernel.org> |
netlink: specs: ethtool: untangle stats-get
Code gen for stats is a bit of a challenge, but from looking at the attrs I think that the format isn't quite right.
Signed-off-by: Jakub Kicinski <kuba@
netlink: specs: ethtool: untangle stats-get
Code gen for stats is a bit of a challenge, but from looking at the attrs I think that the format isn't quite right.
Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
37c85222 | 09-Jun-2023 |
Jakub Kicinski <kuba@kernel.org> |
netlink: specs: ethtool: untangle UDP tunnels and cable test a bit
UDP tunnel and cable test messages have a lot of nests, which do not match the names of the enum entries in C uAPI. Some of the str
netlink: specs: ethtool: untangle UDP tunnels and cable test a bit
UDP tunnel and cable test messages have a lot of nests, which do not match the names of the enum entries in C uAPI. Some of the structure / nesting also looks wrong.
Untangle this a little bit based on the names, comments and educated guesses, I haven't actually tested the results.
Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
180ad455 | 09-Jun-2023 |
Jakub Kicinski <kuba@kernel.org> |
netlink: specs: ethtool: add empty enum stringset
C does not allow defining structures and enums with the same name. Since enum ethtool_stringset exists in the uAPI we need to include at least a stu
netlink: specs: ethtool: add empty enum stringset
C does not allow defining structures and enums with the same name. Since enum ethtool_stringset exists in the uAPI we need to include at least a stub of it in the spec. This will trigger name collision avoidance in the code gen.
Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
8947e503 | 07-Jun-2023 |
Jakub Kicinski <kuba@kernel.org> |
netlink: specs: devlink: fill in some details important for C
Python YNL is much more forgiving than the C code gen in terms of the spec completeness. Fill in a handful of devlink details to make th
netlink: specs: devlink: fill in some details important for C
Python YNL is much more forgiving than the C code gen in terms of the spec completeness. Fill in a handful of devlink details to make the spec usable in C.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|