Home
last modified time | relevance | path

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

/linux/tools/net/ynl/pyynl/
H A Dethtool.py23 def args_to_req(ynl, op_name, args, req):
25 Verify and convert command-line arguments to the ynl-compatible request.
27 valid_attrs = ynl.operation_do_attributes(op_name)
87 def doit(ynl, args, op_name):
97 args_to_req(ynl, op_name, args.args, req)
98 ynl.do(op_name, req)
100 def dumpit(ynl, args, op_name, extra=None):
106 reply = ynl.dump(op_name, { 'header': {} } | extra)
123 Convert ynl-formatted bitmask to a dict of bit=value.
176 ynl
15 args_to_req(ynl, op_name, args, req) global() argument
78 doit(ynl, args, op_name) global() argument
91 dumpit(ynl, args, op_name, extra = {}) global() argument
[all...]
H A Dcli.py21 SYS_SCHEMA_DIR='/usr/share/ynl'
76 """A custom encoder for emitting JSON with ynl-specific instance types"""
85 def print_attr_list(ynl, attr_names, attr_set, indent=2):
96 if enum_name in ynl.consts:
97 const = ynl.consts[enum_name]
117 if nested_set_name in ynl.attr_sets:
118 nested_set = ynl.attr_sets[nested_set_name]
123 print_attr_list(ynl, nested_names, nested_set, indent + 4)
126 def print_mode_attrs(ynl, mode, mode_spec, attr_set, consistent_dd_reply=None):
132 print_attr_list(ynl, mode_spe
[all...]
/linux/tools/testing/selftests/net/
H A Dynl.mk19 -I$(top_srcdir)/tools/net/ynl/lib/ \
20 -I$(top_srcdir)/tools/net/ynl/generated/
30 $(Q)rm -f $(top_srcdir)/tools/net/ynl/libynl.a
31 $(Q)$(MAKE) -C $(top_srcdir)/tools/net/ynl \
33 $(Q)cp $(top_srcdir)/tools/net/ynl/libynl.a $(OUTPUT)/libynl.a
36 $(top_srcdir)/tools/net/ynl/pyynl/__pycache__ \
37 $(top_srcdir)/tools/net/ynl/pyynl/lib/__pycache__ \
38 $(top_srcdir)/tools/net/ynl/lib/*.[ado] \
H A DMakefile220 include ynl.mk
/linux/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/tools/net/ynl/
H A DMakefile25 @ar rcs $@ lib/ynl.o generated/*-user.o
49 @$(INSTALL) -d $(DESTDIR)$(includedir)/ynl
50 @$(INSTALL) -m 0644 lib/*.h $(DESTDIR)$(includedir)/ynl/
/linux/tools/testing/selftests/net/lib/py/
H A D__init__.py17 from .ynl import NlError, YnlFamily, EthtoolFamily, NetdevFamily, RtnlFamily, RtnlAddrFamily
18 from .ynl import NetshaperFamily, DevlinkFamily, PSPFamily
H A Dynl.py16 from net.lib.ynl.pyynl.lib import YnlFamily, NlError
23 from net.ynl.pyynl.lib import YnlFamily, NlError
25 ksft_pr("Failed importing `ynl` library from kernel sources")
/linux/tools/
H A DMakefile123 ynl: FORCE target
124 $(call descend,net/ynl)
130 debugging tracing thermal thermometer thermal-engine ynl
/linux/tools/testing/selftests/net/lib/
H A DMakefile9 ../../../../net/ynl \
/linux/tools/testing/selftests/drivers/net/
H A DMakefile37 include ../../net/ynl.mk
/linux/tools/testing/selftests/drivers/net/hw/
H A DMakefile74 include ../../../net/ynl.mk
/linux/tools/net/ynl/pyynl/lib/
H A Dynl.py419 def decode(self, ynl, nl_msg, op):
422 op = ynl.rsp_by_value[msg.cmd()]
423 fixed_header_size = ynl.struct_size(op.fixed_header)
397 decode(self, ynl, nl_msg, op) global() argument
/linux/Documentation/networking/
H A Dxsk-tx-metadata.rst140 See ``tools/net/ynl/samples/netdev.c`` on how to query this information.
/linux/
H A DMAINTAINERS7647 F: tools/net/ynl/pyynl/lib/doc_generator.py
29073 F: tools/net/ynl/