Re: [PATCH net-next v2 4/6] tools: ynl: Add struct attr decoding to ynl
From: Donald Hunter <hidden>
Date: 2023-03-22 22:07:24
From: Donald Hunter <hidden>
Date: 2023-03-22 22:07:24
On Wed, 22 Mar 2023 at 18:38, Jakub Kicinski [off-list ref] wrote:
Maybe to avoid saying struct twice we should go the enum way and
actually ditch the sub-type for structs? Presence of struct: abc
implies it's a struct, only use sub-type for scalar types?
-
name: stats
type: binary
struct: vport-statsYep, this looks good. I'll add this to the docs too.
-
name: another
type: binary
sub-type: u32
enum: enums-name