diff options
| author | Jakub Kicinski <[email protected]> | 2025-01-08 20:07:58 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-01-09 20:53:02 +0000 |
| commit | 93e505a300aa4314995f14a2083d0df97a0d80e3 (patch) | |
| tree | 03c11eb1f1132f4abcf17c744a8ca23c8ae0541f /tools/testing/selftests/net/lib/py | |
| parent | Merge branch 'enic-set-link-speed-only-after-link-up' (diff) | |
| download | kernel-93e505a300aa4314995f14a2083d0df97a0d80e3.tar.gz kernel-93e505a300aa4314995f14a2083d0df97a0d80e3.zip | |
tools: ynl-gen-c: improve support for empty nests
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.
Acked-by: Stanislav Fomichev <[email protected]>
Reviewed-by: Nicolas Dichtel <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py')
0 files changed, 0 insertions, 0 deletions
