Subject: Re: [PATCH net-next] tools: ynl-gen-c: improve support for empty nests

From: Stanislav Fomichev <[email-masked]>
Date: Wed, 8 Jan 2025 18:09:43 -0800

On 01/08, Jakub Kicinski wrote:
> Empty nests are the same size as a flag at the netlink level
> (just a 4 byte nlattr without a payload). They are sometimes
> useful in case we want to only communicate a presence of
> something but may want to add more details later.
> This may be the case in the upcoming io_uring ZC patches,
> for example.
> 
> Improve handling of nested empty structs. We already support
> empty structs since a lot of netlink replies are empty, but
> for nested ones we need minor tweaks to avoid pointless empty
> lines and unused variables.
> 
> Signed-off-by: Jakub Kicinski <[email-masked]>

Acked-by: Stanislav Fomichev <[email-masked]>

Looks sensible. Assuming the context is:
https://lore.kernel.org/netdev/[email-masked]/T/#Z2e.:..:20250108220644.3528845-8-dw::40davidwei.uk:1Documentation:netlink:specs:netdev.yaml