net: add basic C code generators for Netlink
authorJakub Kicinski <kuba@kernel.org>
Fri, 20 Jan 2023 17:50:36 +0000 (09:50 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 24 Jan 2023 09:58:11 +0000 (10:58 +0100)
commitbe5bea1cc0bf663aa0a45a2c0021dfcfb6cca976
tree6644133c9f111d233236925afbc342bac19f3935
parente616c07ca51817ebdb1423807d52cac72d1c22fa
net: add basic C code generators for Netlink

Code generators to turn Netlink specs into C code.
I'm definitely not proud of it.

The main generator is in Python, there's a bash script
to regen all code-gen'ed files in tree after making
spec changes.

Acked-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
MAINTAINERS
tools/net/ynl/ynl-gen-c.py [new file with mode: 0755]
tools/net/ynl/ynl-regen.sh [new file with mode: 0755]