[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m2tt5kn8y4.fsf@gmail.com>
Date: Fri, 16 May 2025 11:31:15 +0100
From: Donald Hunter <donald.hunter@...il.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org, edumazet@...gle.com,
pabeni@...hat.com, andrew+netdev@...n.ch, horms@...nel.org,
daniel@...earbox.net, nicolas.dichtel@...nd.com,
jacob.e.keller@...el.com
Subject: Re: [PATCH net-next 5/9] tools: ynl-gen: submsg: render the structs
Jakub Kicinski <kuba@...nel.org> writes:
> The easiest (or perhaps only sane) way to support submessages in C
> is to treat them as if they were nests. Build fake attributes to
> that effect in the codegen. Render the submsg as a big nest of all
> possible values.
>
> With this in place the main missing part is to hook in the switch
> which selects how to parse based on the key.
>
> Signed-off-by: Jakub Kicinski <kuba@...nel.org>
Reviewed-by: Donald Hunter <donald.hunter@...il.com>
Powered by blists - more mailing lists