6da3424f | 08-Jun-2023 |
Jakub Kicinski <kuba@kernel.org> |
tools: ynl-gen: support code gen for events
Netlink specs support both events and notifications (former can define their own message contents). Plug in missing code to generate types, parsers and in
tools: ynl-gen: support code gen for events
Netlink specs support both events and notifications (former can define their own message contents). Plug in missing code to generate types, parsers and include events into notification tables.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
ff6db4b5 | 07-Jun-2023 |
Jakub Kicinski <kuba@kernel.org> |
tools: ynl-gen: enable code gen for directional specs
I think that user space code gen for directional specs works after recent changes. Let them through.
Signed-off-by: Jakub Kicinski <kuba@kernel
tools: ynl-gen: enable code gen for directional specs
I think that user space code gen for directional specs works after recent changes. Let them through.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
313a7a80 | 27-May-2023 |
Donald Hunter <donald.hunter@gmail.com> |
tools: ynl: Support enums in struct members in genetlink-legacy
Support decoding scalars as enums in struct members for genetlink-legacy specs.
Signed-off-by: Donald Hunter <donald.hunter@gmail.com
tools: ynl: Support enums in struct members in genetlink-legacy
Support decoding scalars as enums in struct members for genetlink-legacy specs.
Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
bddd2e56 | 23-May-2023 |
Donald Hunter <donald.hunter@gmail.com> |
tools: ynl: Handle byte-order in struct members
Add support for byte-order in struct members in the genetlink-legacy spec.
Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Acked-by: Jakub Kic
tools: ynl: Handle byte-order in struct members
Add support for byte-order in struct members in the genetlink-legacy spec.
Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Acked-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
f3d07b02 | 30-Mar-2023 |
Stanislav Fomichev <sdf@google.com> |
tools: ynl: ethtool testing tool
This is what I've been using to see whether the spec makes sense. A small subset of getters (mostly the unprivileged ones) is implemented. Some setters (channels) al
tools: ynl: ethtool testing tool
This is what I've been using to see whether the spec makes sense. A small subset of getters (mostly the unprivileged ones) is implemented. Some setters (channels) also work. Setters for messages with bitmasks are not implemented.
Initially I was trying to make this tool look 1:1 like real ethtool, but eventually gave up :-)
Sample output:
$ ./tools/net/ynl/ethtool enp0s31f6 Settings for enp0s31f6: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: no Supports auto-negotiation: yes Supported FEC modes: Not reported Speed: Unknown! Duplex: Unknown! (255) Auto-negotiation: on Port: Twisted Pair PHYAD: 2 Transceiver: Internal MDI-X: Unknown (auto) Current message level: drv probe link Link detected: no
Signed-off-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
48993e22 | 30-Mar-2023 |
Stanislav Fomichev <sdf@google.com> |
tools: ynl: replace print with NlError
Instead of dumping the error on the stdout, make the callee and opportunity to decide what to do with it. This is mostly for the ethtool testing.
Signed-off-b
tools: ynl: replace print with NlError
Instead of dumping the error on the stdout, make the callee and opportunity to decide what to do with it. This is mostly for the ethtool testing.
Signed-off-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
f036d936 | 27-Mar-2023 |
Donald Hunter <donald.hunter@gmail.com> |
tools: ynl: Add fixed-header support to ynl
Add support for netlink families that add an optional fixed header structure after the genetlink header and before any attributes. The fixed-header can be
tools: ynl: Add fixed-header support to ynl
Add support for netlink families that add an optional fixed header structure after the genetlink header and before any attributes. The fixed-header can be specified on a per op basis, or once for all operations, which serves as a default value that can be overridden.
Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
b423c3c8 | 27-Mar-2023 |
Donald Hunter <donald.hunter@gmail.com> |
tools: ynl: Add C array attribute decoding to ynl
Add support for decoding C arrays from binay blobs in genetlink-legacy messages.
Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Reviewed-by
tools: ynl: Add C array attribute decoding to ynl
Add support for decoding C arrays from binay blobs in genetlink-legacy messages.
Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
4c6170d1 | 24-Mar-2023 |
Jakub Kicinski <kuba@kernel.org> |
tools: ynl: default to treating enums as flags for mask generation
I was a bit too optimistic in commit bf51d27704c9 ("tools: ynl: fix get_mask utility routine"), not every mask we use is necessaril
tools: ynl: default to treating enums as flags for mask generation
I was a bit too optimistic in commit bf51d27704c9 ("tools: ynl: fix get_mask utility routine"), not every mask we use is necessarily coming from an enum of type "flags". We also allow flipping an enum into flags on per-attribute basis. That's done by the 'enum-as-flags' property of an attribute.
Restore this functionality, it's not currently used by any in-tree family.
Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|