Home
last modified time | relevance | path

Searched refs:ynl (Results 1 – 23 of 23) sorted by relevance

/linux-6.15/tools/net/ynl/pyynl/
H A Dethtool.py16 def args_to_req(ynl, op_name, args, req): argument
76 def doit(ynl, args, op_name): argument
86 args_to_req(ynl, op_name, args.args, req)
87 ynl.do(op_name, req)
89 def dumpit(ynl, args, op_name, extra = {}): argument
163 ynl = YnlFamily(spec, schema)
171 return doit(ynl, args, 'eee-set')
174 return doit(ynl, args, 'pause-set')
188 return doit(ynl, args, 'rings-set')
196 eee = dumpit(ynl, args, 'eee-get')
[all …]
H A Dcli.py121 ynl = YnlFamily(spec, args.schema, args.process_unknown,
124 ynl.set_recv_dbg(True)
127 ynl.ntf_subscribe(args.ntf)
130 for op_name, op in ynl.ops.items():
133 for op_name, op in ynl.msgs.items():
138 reply = ynl.do(args.do, attrs, args.flags)
141 reply = ynl.dump(args.dump, attrs)
145 reply = ynl.do_multi(ops)
153 for msg in ynl.poll_ntf(duration=args.duration):
/linux-6.15/tools/testing/selftests/net/
H A Dynl.mk18 -I$(top_srcdir)/tools/net/ynl/lib/ \
19 -I$(top_srcdir)/tools/net/ynl/generated/
29 $(Q)rm -f $(top_srcdir)/tools/net/ynl/libynl.a
30 $(Q)$(MAKE) -C $(top_srcdir)/tools/net/ynl \
32 $(Q)cp $(top_srcdir)/tools/net/ynl/libynl.a $(OUTPUT)/libynl.a
35 $(top_srcdir)/tools/net/ynl/pyynl/__pycache__ \
36 $(top_srcdir)/tools/net/ynl/pyynl/lib/__pycache__ \
37 $(top_srcdir)/tools/net/ynl/lib/*.[ado] \
H A DMakefile128 include ynl.mk
/linux-6.15/tools/net/ynl/generated/
H A DMakefile66 @../ynl-regen.sh
70 @$(INSTALL) -d $(DESTDIR)$(includedir)/ynl
71 @$(INSTALL) -m 0644 *.h $(DESTDIR)$(includedir)/ynl/
75 @$(INSTALL) -d $(DESTDIR)$(docdir)/ynl
76 @$(INSTALL) -m 0644 $(RSTS) $(DESTDIR)$(docdir)/ynl/
80 @$(INSTALL) -d $(DESTDIR)$(datarootdir)/ynl
81 @$(INSTALL) -m 0644 ../../../../Documentation/netlink/*.yaml $(DESTDIR)$(datarootdir)/ynl/
82 @$(INSTALL) -d $(DESTDIR)$(datarootdir)/ynl/specs
83 @$(INSTALL) -m 0644 $(SPECS_DIR)/*.yaml $(DESTDIR)$(datarootdir)/ynl/specs/
/linux-6.15/tools/net/ynl/
H A Dpyproject.toml11 description = "yaml netlink (ynl)"
23 ynl = "pyynl.cli:main"
24 ynl-ethtool = "pyynl.ethtool:main"
H A DMakefile22 @ar rcs $@ lib/ynl.o generated/*-user.o
46 @$(INSTALL) -d $(DESTDIR)$(includedir)/ynl
47 @$(INSTALL) -m 0644 lib/*.h $(DESTDIR)$(includedir)/ynl/
/linux-6.15/Documentation/userspace-api/netlink/
H A Dintro-specs.rst18 The tool is located at ``tools/net/ynl/pyynl/cli.py``. It accepts
30 $ ./tools/net/ynl/pyynl/cli.py --spec Documentation/netlink/specs/ethtool.yaml \
56 ``tools/net/ynl/ynl-regen.sh`` scans the kernel tree in search of
63 ``ynl-regen.sh`` searches for ``YNL-GEN`` in the contents of files
70 ``ynl-regen.sh`` will find this marker and replace the file with
78 The code generation itself is performed by ``tools/net/ynl/pyynl/ynl_gen_c.py``
85 ``tools/net/ynl/lib/`` contains an implementation of a C library
87 ``tools/net/ynl/pyynl/ynl_gen_c.py`` to create easy to use netlink wrappers.
/linux-6.15/tools/testing/selftests/net/lib/py/
H A D__init__.py8 from .ynl import NlError, YnlFamily, EthtoolFamily, NetdevFamily, RtnlFamily, RtnlAddrFamily
9 from .ynl import NetshaperFamily
H A Dynl.py16 from net.lib.ynl.pyynl.lib import YnlFamily, NlError
23 from net.ynl.pyynl.lib import YnlFamily, NlError
/linux-6.15/tools/net/ynl/lib/
H A DMakefile14 all: ynl.a
16 ynl.a: $(OBJS)
/linux-6.15/tools/net/ynl/samples/
H A DMakefile12 LDLIBS=../lib/ynl.a ../generated/protos.a
23 $(BINS): ../lib/ynl.a ../generated/protos.a $(SRCS)
/linux-6.15/tools/net/ynl/pyynl/lib/
H A D__init__.py5 from .ynl import YnlFamily, Netlink, NlError
H A Dynl.py392 def decode(self, ynl, nl_msg, op): argument
395 op = ynl.rsp_by_value[msg.cmd()]
396 fixed_header_size = ynl._struct_size(op.fixed_header)
/linux-6.15/Documentation/networking/netlink_spec/
H A Dreadme.txt4 tools/net/ynl/pyynl/ynl_gen_rst.py script.
/linux-6.15/tools/testing/selftests/net/lib/
H A DMakefile9 TEST_FILES += ../../../../net/ynl
/linux-6.15/tools/testing/selftests/drivers/net/hw/
H A DMakefile47 include ../../../net/ynl.mk
/linux-6.15/Documentation/networking/
H A Dmulti-pf-netdev.rst92 …$ ./tools/net/ynl/pyynl/cli.py --spec Documentation/netlink/specs/netdev.yaml --dump queue-get --j…
104 …$ ./tools/net/ynl/pyynl/cli.py --spec Documentation/netlink/specs/netdev.yaml --dump napi-get --js…
H A Dnapi.rst197 the kernel source tree: ``tools/net/ynl/pyynl/cli.py``.
204 $ kernel-source/tools/net/ynl/pyynl/cli.py \
233 ``tools/net/ynl/pyynl/cli.py``.
239 $ kernel-source/tools/net/ynl/pyynl/cli.py \
H A Dxsk-tx-metadata.rst140 See ``tools/net/ynl/samples/netdev.c`` on how to query this information.
H A Dstatistics.rst50 Kernel development tools (ynl) can be used to experiment with them,
/linux-6.15/Documentation/
H A DMakefile107 YNL_TOOL:=$(srctree)/tools/net/ynl/pyynl/ynl_gen_rst.py
/linux-6.15/
H A DMAINTAINERS26854 F: tools/net/ynl/