linux-stable/tools/net/ynl
Donald Hunter bf08f32c8c tools/net/ynl: Add support for nested structs
Make it possible for struct definitions to reference other struct
definitions ofr binary members. For example, the tbf qdisc uses this
struct definition for its parms attribute:

  -
    name: tc-tbf-qopt
    type: struct
    members:
      -
        name: rate
        type: binary
        struct: tc-ratespec
      -
        name: peakrate
        type: binary
        struct: tc-ratespec
      -
        name: limit
        type: u32
      -
        name: buffer
        type: u32
      -
        name: mtu
        type: u32

This adds the necessary schema changes and adds nested struct encoding
and decoding to ynl.

Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20240129223458.52046-11-donald.hunter@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-01-31 21:19:19 -08:00
..
generated tools: ynl: remove generated user space code from git 2023-12-05 10:24:39 -08:00
lib tools/net/ynl: Add support for nested structs 2024-01-31 21:19:19 -08:00
samples bpf-next-for-netdev 2023-11-30 16:58:42 -08:00
cli.py tools/net/ynl: Add --output-json arg to ynl cli 2024-01-31 21:19:18 -08:00
ethtool.py tools: ynl: Rename ethtool to ethtool.py 2023-04-13 22:18:29 -07:00
Makefile tools: ynl: order building samples after generated code 2023-11-29 16:07:00 -08:00
Makefile.deps tools: ynl: fix header path for nfsd 2023-11-23 08:52:12 -08:00
requirements.txt tools: ynl: add the Python requirements.txt file 2023-03-24 19:11:02 -07:00
ynl-gen-c.py tools: ynl-gen: print prototypes for recursive stuff 2023-12-14 17:51:21 -08:00
ynl-gen-rst.py tools/net/ynl-gen-rst: Remove extra indentation from generated docs 2023-12-18 14:39:44 -08:00
ynl-regen.sh tools: ynl: don't skip regeneration from make targets 2023-11-29 16:07:00 -08:00