Home
last modified time | relevance | path

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

/linux/tools/net/ynl/tests/
H A Dethtool.py21 def args_to_req(ynl, op_name, args, req): argument
25 valid_attrs = ynl.operation_do_attributes(op_name)
85 def do_set(ynl, args, op_name): argument
95 args_to_req(ynl, op_name, args.args, req)
96 ynl.do(op_name, req)
98 def do_get(ynl, args, op_name, extra=None): argument
107 reply = ynl.do(op_name, req)
174 ynl = YnlFamily(family='ethtool', recv_size=args.dbg_small_recv)
176 ynl.set_recv_dbg(True)
184 do_set(ynl, args, 'eee-set')
[all …]
/linux/tools/net/ynl/pyynl/
H A Dethtool.py
H A Dcli.py59 def print_attr_list(ynl, attr_names, attr_set, indent=2): argument
70 if enum_name in ynl.consts:
71 const = ynl.consts[enum_name]
91 if nested_set_name in ynl.attr_sets:
92 nested_set = ynl.attr_sets[nested_set_name]
97 print_attr_list(ynl, nested_names, nested_set, indent + 4)
100 def print_mode_attrs(ynl, mode, mode_spec, attr_set, consistent_dd_reply=None): argument
106 print_attr_list(ynl, mode_spec['request']['attributes'], attr_set)
117 print_attr_list(ynl, mode_spec['reply']['attributes'], attr_set)
120 def do_doc(ynl, op): argument
[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 DMakefile234 include ynl.mk
/linux/tools/net/ynl/generated/
H A DMakefile65 @../ynl-regen.sh
69 @$(INSTALL) -d $(DESTDIR)$(includedir)/ynl
70 @$(INSTALL) -m 0644 *.h $(DESTDIR)$(includedir)/ynl/
74 @$(INSTALL) -d $(DESTDIR)$(docdir)/ynl
75 @$(INSTALL) -m 0644 $(RSTS) $(DESTDIR)$(docdir)/ynl/
79 @$(INSTALL) -d $(DESTDIR)$(datarootdir)/ynl
80 @$(INSTALL) -m 0644 ../../../../Documentation/netlink/*.yaml $(DESTDIR)$(datarootdir)/ynl/
81 @$(INSTALL) -d $(DESTDIR)$(datarootdir)/ynl/specs
82 @$(INSTALL) -m 0644 $(SPECS_DIR)/*.yaml $(DESTDIR)$(datarootdir)/ynl/specs/
/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/net/ynl/lib/
H A DMakefile14 all: ynl.a
16 ynl.a: $(OBJS)
/linux/tools/testing/selftests/net/lib/py/
H A D__init__.py19 from .ynl import NlError, NlctrlFamily, YnlFamily, \
21 from .ynl import NetshaperFamily, DevlinkFamily, PSPFamily, Netlink
H A Dynl.py16 from net.lib.ynl.pyynl.lib import YnlFamily, NlError, NlPolicy, Netlink
23 from net.ynl.pyynl.lib import YnlFamily, NlError, NlPolicy, Netlink
/linux/tools/
H A DMakefile123 ynl: FORCE target
124 $(call descend,net/ynl)
130 debugging tracing thermal thermometer thermal-engine ynl
/linux/tools/net/ynl/pyynl/lib/
H A D__init__.py9 from .ynl import YnlFamily, Netlink, NlError, NlPolicy, YnlException
H A Dynl.py166 def __init__(self, ynl, policy_idx, policy_table, attr_set, props=None): argument
169 self._ynl = ynl
589 def decode(self, ynl, nl_msg, op): argument
592 op = ynl.rsp_by_value[msg.cmd()]
593 fixed_header_size = ynl.struct_size(op.fixed_header)
/linux/tools/testing/selftests/net/lib/
H A DMakefile9 ../../../../net/ynl \
/linux/tools/testing/selftests/drivers/net/
H A DMakefile39 include ../../net/ynl.mk
/linux/tools/testing/selftests/drivers/net/hw/
H A DMakefile89 include ../../../net/ynl.mk
/linux/
H A DMAINTAINERS7785 F: tools/net/ynl/pyynl/lib/doc_generator.py
29942 F: tools/net/ynl/