tools: ynl-gen: don't override pure nested struct
authorJakub Kicinski <kuba@kernel.org>
Fri, 2 Jun 2023 02:35:41 +0000 (19:35 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 3 Jun 2023 05:10:46 +0000 (22:10 -0700)
commit67c65ce762adaf3515fe058538c0a7065dc9f2b4
tree6cc74af50caec2fb5bec366ee4817004ab1c7b39
parent6ad49839ba9b44cf957555f2b0b4f8bc076db48f
tools: ynl-gen: don't override pure nested struct

For pure structs (parsed nested attributes) we track what
forms of the struct exist in request and reply directions.
Make sure we don't overwrite the recorded struct each time,
otherwise the information is lost.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/ynl-gen-c.py