| /linux/tools/net/ynl/pyynl/ |
| H A D | ethtool.py | 15 def args_to_req(ynl, op_name, args, req): argument 19 valid_attrs = ynl.operation_do_attributes(op_name) 78 def doit(ynl, args, op_name): argument 88 args_to_req(ynl, op_name, args.args, req) 89 ynl.do(op_name, req) 91 def dumpit(ynl, args, op_name, extra = {}): argument 96 reply = ynl.dump(op_name, { 'header': {} } | extra) 164 ynl = YnlFamily(spec, schema) 172 return doit(ynl, args, 'eee-set') 175 return doit(ynl, args, 'pause-set') [all …]
|
| H A D | cli.py | 15 sys_schema_dir='/usr/share/ynl' 43 def print_attr_list(ynl, attr_names, attr_set, indent=2): 54 if enum_name in ynl.consts: 55 const = ynl.consts[enum_name] 71 if nested_set_name in ynl.attr_sets: 72 nested_set = ynl.attr_sets[nested_set_name] 77 print_attr_list(ynl, nested_names, nested_set, indent + 4) 80 def print_mode_attrs(ynl, mode, mode_spec, attr_set, print_request=True): 86 print_attr_list(ynl, mode_spec['request']['attributes'], attr_set) 90 print_attr_list(ynl, mode_spe [all...] |
| /linux/tools/testing/selftests/net/ |
| H A D | ynl.mk | 19 -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 D | Makefile | 207 include ynl.mk
|
| /linux/Documentation/userspace-api/netlink/ |
| H A D | intro-specs.rst | 18 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/testing/selftests/net/lib/py/ |
| H A D | __init__.py | 17 from .ynl import NlError, YnlFamily, EthtoolFamily, NetdevFamily, RtnlFamily, RtnlAddrFamily 18 from .ynl import NetshaperFamily, DevlinkFamily, PSPFamily
|
| H A D | ynl.py | 16 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 D | Makefile | 123 ynl: FORCE target 124 $(call descend,net/ynl) 130 debugging tracing thermal thermometer thermal-engine ynl
|
| /linux/tools/testing/selftests/net/lib/ |
| H A D | Makefile | 9 ../../../../net/ynl \
|
| /linux/tools/testing/selftests/drivers/net/ |
| H A D | Makefile | 43 include ../../net/ynl.mk
|
| /linux/tools/testing/selftests/drivers/net/hw/ |
| H A D | Makefile | 73 include ../../../net/ynl.mk
|
| /linux/tools/net/ynl/pyynl/lib/ |
| H A D | ynl.py | 405 def decode(self, ynl, nl_msg, op): 408 op = ynl.rsp_by_value[msg.cmd()] 409 fixed_header_size = ynl._struct_size(op.fixed_header) 397 decode(self, ynl, nl_msg, op) global() argument
|
| /linux/Documentation/networking/ |
| H A D | xsk-tx-metadata.rst | 140 See ``tools/net/ynl/samples/netdev.c`` on how to query this information.
|
| /linux/ |
| H A D | MAINTAINERS | 7528 F: tools/net/ynl/pyynl/lib/doc_generator.py 28724 F: tools/net/ynl/
|