linux/Documentation/netlink
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
..
specs dpll: expose fractional frequency offset value to user 2024-01-05 07:58:19 -08:00
genetlink-c.yaml doc/netlink: Update schema to support cmd-cnt-name and cmd-max-name 2023-10-27 14:56:04 -07:00
genetlink-legacy.yaml doc/netlink: Update schema to support cmd-cnt-name and cmd-max-name 2023-10-27 14:56:04 -07:00
genetlink.yaml netlink: specs: support conditional operations 2023-10-26 19:42:15 -07:00
netlink-raw.yaml tools/net/ynl: Add support for nested structs 2024-01-31 21:19:19 -08:00