[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <780d9c80-cc74-4881-9a30-5c7b40c4b2be@6wind.com>
Date: Thu, 9 Jan 2025 17:52:00 +0100
From: Nicolas Dichtel <nicolas.dichtel@...nd.com>
To: Jakub Kicinski <kuba@...nel.org>, davem@...emloft.net
Cc: netdev@...r.kernel.org, edumazet@...gle.com, pabeni@...hat.com,
andrew+netdev@...n.ch, horms@...nel.org, dw@...idwei.uk,
donald.hunter@...il.com, sdf@...ichev.me
Subject: Re: [PATCH net-next] tools: ynl-gen-c: improve support for empty
nests
Le 08/01/2025 à 21:07, Jakub Kicinski a écrit :
> 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 <kuba@...nel.org>
Reviewed-by: Nicolas Dichtel <nicolas.dichtel@...nd.com>
Powered by blists - more mailing lists