]> www.infradead.org Git - users/hch/misc.git/commit
tools: ynl: move python code to separate sub-directory
authorJan Stancek <jstancek@redhat.com>
Wed, 8 Jan 2025 13:56:14 +0000 (14:56 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 Jan 2025 20:53:27 +0000 (12:53 -0800)
commitab88c2b3739a3d839b04f57d9ee0d6b1dc311cc8
tree31aede8efd695598e24281867cbe1b57a6fc785e
parent93e505a300aa4314995f14a2083d0df97a0d80e3
tools: ynl: move python code to separate sub-directory

Move python code to a separate directory so it can be
packaged as a python module. Updates existing references
in selftests and docs.

Also rename ynl-gen-[c|rst] to ynl_gen_[c|rst], avoid
dashes as these prevent easy imports for entrypoints.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/a4151bad0e6984e7164d395125ce87fd2e048bf1.1736343575.git.jstancek@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
21 files changed:
Documentation/Makefile
Documentation/networking/multi-pf-netdev.rst
Documentation/networking/napi.rst
Documentation/networking/netlink_spec/readme.txt
Documentation/userspace-api/netlink/intro-specs.rst
tools/net/ynl/Makefile
tools/net/ynl/generated/Makefile
tools/net/ynl/lib/.gitignore
tools/net/ynl/lib/Makefile
tools/net/ynl/pyynl/.gitignore [new file with mode: 0644]
tools/net/ynl/pyynl/__init__.py [new file with mode: 0644]
tools/net/ynl/pyynl/cli.py [moved from tools/net/ynl/cli.py with 100% similarity]
tools/net/ynl/pyynl/ethtool.py [moved from tools/net/ynl/ethtool.py with 100% similarity]
tools/net/ynl/pyynl/lib/__init__.py [moved from tools/net/ynl/lib/__init__.py with 100% similarity]
tools/net/ynl/pyynl/lib/nlspec.py [moved from tools/net/ynl/lib/nlspec.py with 100% similarity]
tools/net/ynl/pyynl/lib/ynl.py [moved from tools/net/ynl/lib/ynl.py with 100% similarity]
tools/net/ynl/pyynl/ynl_gen_c.py [moved from tools/net/ynl/ynl-gen-c.py with 100% similarity]
tools/net/ynl/pyynl/ynl_gen_rst.py [moved from tools/net/ynl/ynl-gen-rst.py with 100% similarity]
tools/net/ynl/ynl-regen.sh
tools/testing/selftests/net/lib/py/ynl.py
tools/testing/selftests/net/ynl.mk