diff options
| author | Donald Hunter <[email protected]> | 2024-01-29 22:34:55 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-01-31 21:19:19 -0800 |
| commit | bf08f32c8cedb12a23efcdc2c9584601d7030e16 (patch) | |
| tree | 11b33fc945ef2162ff027898c241437ab065f795 /tools/perf/scripts/python | |
| parent | 971c3eeaf668ed312d032d12becb106982d2b2bd (diff) | |
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 <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions