aboutsummaryrefslogtreecommitdiffstats
path: root/tools/net/ynl/lib
AgeCommit message (Expand)AuthorFilesLines
2024-05-03tools: ynl: add --list-ops and --list-msgs to CLIJakub Kicinski1-0/+2
2024-04-26tools: ynl: don't append doc of missing type directly to the typeJakub Kicinski1-3/+2
2024-04-25Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+1
2024-04-23tools: ynl: don't ignore errors in NLMSG_DONE messagesJakub Kicinski1-0/+1
2024-04-22tools/net/ynl: Add multi message support to ynlDonald Hunter1-19/+49
2024-04-22tools/net/ynl: Fix extack decoding for directional opsDonald Hunter1-8/+6
2024-04-15tools: ynl: don't return None for dumpsJakub Kicinski1-1/+3
2024-04-05ynl: support binary and integer sub-type for indexed-arrayHangbin Liu1-0/+10
2024-04-05ynl: rename array-nest to indexed-arrayHangbin Liu1-5/+8
2024-04-04tools: ynl: copy netlink error to NlErrorJakub Kicinski1-1/+2
2024-04-02tools: ynl: add ynl_dump_empty() helperJakub Kicinski1-0/+12
2024-03-29tools/net/ynl: Add extack policy attribute decodingDonald Hunter1-0/+46
2024-03-28ynl: support hex display_hint for integerHangbin Liu1-1/+4
2024-03-11netlink: specs: support generating code for genl socket privJakub Kicinski1-0/+2
2024-03-11tools: ynl: remove trailing semicolonJakub Kicinski1-1/+1
2024-03-08tools: ynl: Fix spelling mistake "Constructred" -> "Constructed"Colin Ian King1-1/+1
2024-03-07tools/net/ynl: Add nest-type-value decodingDonald Hunter1-0/+12
2024-03-07tools/net/ynl: Report netlink errors without stacktraceDonald Hunter1-2/+2
2024-03-07tools/net/ynl: Fix extack decoding for netlink-rawDonald Hunter1-1/+6
2024-03-07tools: ynl: check for overflow of constructed messagesJakub Kicinski3-4/+68
2024-03-06tools: ynl: support debug printing messagesJakub Kicinski1-0/+15
2024-03-06tools: ynl: allow setting recv() sizeJakub Kicinski1-3/+18
2024-03-06tools: ynl: move the new line in NlMsg __repr__Jakub Kicinski1-3/+3
2024-03-06tools: ynl: remove __pycache__ during cleanJakub Kicinski1-0/+1
2024-03-06tools: ynl: add distclean to .PHONY in all makefilesJakub Kicinski1-1/+1
2024-03-06tools: ynl: rename make hardclean -> distcleanJakub Kicinski1-1/+1
2024-02-29Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+1
2024-02-28tools: ynl: use MSG_DONTWAIT for getting notificationsJakub Kicinski1-15/+14
2024-02-28tools: ynl: remove the libmnl dependencyJakub Kicinski2-4/+1
2024-02-28tools: ynl: stop using mnl socket helpersJakub Kicinski3-22/+42
2024-02-28tools: ynl: switch away from MNL_CB_*Jakub Kicinski2-27/+33
2024-02-28tools: ynl: switch away from mnl_cb_tJakub Kicinski2-16/+20
2024-02-28tools: ynl: stop using mnl_cb_run2()Jakub Kicinski2-19/+45
2024-02-28tools: ynl: use ynl_sock_read_msgs() for ACK handlingJakub Kicinski2-23/+14
2024-02-28tools: ynl: wrap recv() + mnl_cb_run2() into a single helperJakub Kicinski1-38/+18
2024-02-28tools: ynl-gen: remove unused parse codeJakub Kicinski2-3/+1
2024-02-28tools: ynl: make yarg the first member of struct ynl_dump_stateJakub Kicinski2-5/+3
2024-02-28tools: ynl: create local ARRAY_SIZE() helperJakub Kicinski1-0/+3
2024-02-28tools: ynl: create local nlmsg access helpersJakub Kicinski2-14/+49
2024-02-28tools: ynl: create local for_each helpersJakub Kicinski2-6/+53
2024-02-28tools: ynl: create local attribute helpersJakub Kicinski2-36/+204
2024-02-28tools: ynl: give up on libmnl for auto-intsJakub Kicinski1-9/+36
2024-02-28tools: ynl: fix handling of multiple mcast groupsJakub Kicinski1-0/+1
2024-02-23tools: ynl: allow user to pass enum string instead of scalar valueJiri Pirko1-2/+24
2024-02-23tools: ynl: process all scalar types encoding in single elif statementJiri Pirko1-7/+7
2024-02-23tools: ynl: allow user to specify flag attr with bool valuesJiri Pirko1-0/+3
2024-02-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-4/+15
2024-02-21tools: ynl: don't leak mcast_groups on init errorJakub Kicinski1-1/+7
2024-02-21tools: ynl: make sure we always pass yarg to mnl_cb_runJakub Kicinski1-3/+8
2024-02-19tools: ynl: don't access uninitialized attr_space variableJiri Pirko1-2/+2
2024-02-06tools: ynl: add support for encoding multi-attrAlessandro Marcolini1-0/+7
2024-02-06tools: ynl: correct typo and docstringAlessandro Marcolini1-4/+3
2024-01-31tools/net/ynl: Add support for nested structsDonald Hunter2-6/+22
2024-01-31tools/net/ynl: Move formatted_string method out of NlAttrDonald Hunter1-16/+15
2024-01-31tools/net/ynl: Rename _fixed_header_size() to _struct_size()Donald Hunter1-6/+6
2024-01-31tools/net/ynl: Combine struct decoding logic in ynlDonald Hunter1-33/+14
2024-01-31tools/net/ynl: Encode default values for binary blobsDonald Hunter1-2/+7
2024-01-31tools/net/ynl: Add support for encoding sub-messagesDonald Hunter1-4/+23
2024-01-31tools/net/ynl: Refactor fixed header encoding into separate methodDonald Hunter1-11/+15
2024-01-31tools/net/ynl: Support sub-messages in nested attribute spacesDonald Hunter1-9/+29
2023-12-18tools/net/ynl: Add binary and pad support to structs for tcDonald Hunter1-10/+26
2023-12-18tools/net/ynl: Add 'sub-message' attribute decoding to ynlDonald Hunter2-8/+95
2023-12-18tools/net/ynl: Use consistent array index expression formattingDonald Hunter1-5/+5
2023-12-14tools: ynl-gen: support fixed headers in genetlinkJakub Kicinski2-4/+5
2023-12-05tools: ynl: move private definitions to a separate headerJakub Kicinski2-147/+145
2023-12-05tools: ynl: use strerror() if no extack of note providedJakub Kicinski1-1/+5
2023-12-05tools: pynl: make flags argument optional for do()Jakub Kicinski1-2/+2
2023-11-28tools: ynl: add sample for getting page-pool informationJakub Kicinski1-1/+1
2023-10-27tools: ynl: introduce option to process unknown attributes or typesJiri Pirko1-11/+37
2023-10-23Merge branch 'devlink-finish-conversion-to-generated-split_ops'Jakub Kicinski3-3/+17
2023-10-23tools: ynl-gen: introduce support for bitfield32 attribute typeJiri Pirko3-3/+17
2023-10-23tools: ynl-gen: change spacing around __attribute__Jakub Kicinski1-2/+2
2023-10-20netlink: specs: add support for auto-sized scalarsJakub Kicinski4-0/+43
2023-10-17tools: ynl: fix converting flags to names after recent cleanupJakub Kicinski1-1/+1
2023-08-27tools/net/ynl: Add support for create flagsDonald Hunter2-6/+12
2023-08-27tools/net/ynl: Implement nlattr array-nest decoding in ynlDonald Hunter1-0/+13
2023-08-27tools/net/ynl: Add support for netlink-raw familiesDonald Hunter1-33/+91
2023-08-27tools/net/ynl: Fix extack parsing with fixed header genlmsgDonald Hunter1-25/+40
2023-08-27tools/ynl: Add mcast-group schema parsing to ynlDonald Hunter1-0/+31
2023-08-24tools: ynl: allow passing binary dataJakub Kicinski1-1/+6
2023-08-15tools: ynl: add more info to KeyErrors on missing attrsJakub Kicinski1-3/+12
2023-07-26tools: ynl-gen: fix parse multi-attr enum attributeArkadiusz Kubalewski1-6/+6
2023-07-26tools: ynl-gen: fix enum index in _decode_enum(..)Arkadiusz Kubalewski1-2/+2
2023-06-24tools: ynl: add display-hint support to ynlDonald Hunter2-5/+39
2023-06-12tools: ynl-gen: support excluding tricky opsJakub Kicinski1-2/+10
2023-06-09tools: ynl-gen: support code gen for eventsJakub Kicinski1-1/+1
2023-06-09tools: ynl-gen: sanitize notification trackingJakub Kicinski1-1/+4
2023-06-08tools: ynl-gen: enable code gen for directional specsJakub Kicinski1-3/+4
2023-06-08tools: ynl-gen: use enum names in op strmap more carefullyJakub Kicinski1-0/+4
2023-06-06tools: ynl: user space helpersJakub Kicinski3-0/+1166
2023-06-01Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-2/+3
2023-05-29tools: ynl: Support enums in struct members in genetlink-legacyDonald Hunter2-1/+7
2023-05-29tools: ynl: Initialise fixed headers to 0 in genetlink-legacyDonald Hunter1-1/+1
2023-05-25tools: ynl: avoid dict errors on older Python versionsJakub Kicinski1-2/+3
2023-05-24tools: ynl: Handle byte-order in struct membersDonald Hunter2-4/+6
2023-05-24tools: ynl: Use dict of predefined Structs to decode scalar typesDonald Hunter1-57/+44
2023-04-11tools: ynl: throw a more meaningful exception if family not supportedJakub Kicinski1-1/+4
2023-03-30tools: ynl: ethtool testing toolStanislav Fomichev2-0/+20
2023-03-30tools: ynl: replace print with NlErrorStanislav Fomichev1-3/+9
2023-03-30tools: ynl: support byte-order in cliStanislav Fomichev2-12/+24
2023-03-28tools: ynl: Add fixed-header support to ynlDonald Hunter2-12/+33
2023-03-28tools: ynl: Add struct attr decoding to ynlDonald Hunter2-1/+16
2023-03-28tools: ynl: Add C array attribute decoding to ynlDonald Hunter2-3/+22
2023-03-28tools: ynl: Add struct parsing to nlspecDonald Hunter1-0/+43
2023-03-27tools: ynl: default to treating enums as flags for mask generationJakub Kicinski1-4/+4
2023-03-27tools: ynl: Add missing types to encode/decodeMichal Michalik1-0/+6
2023-03-24Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-3/+3
2023-03-23ynl: allow to encode u8 attrJiri Pirko1-0/+2
2023-03-22tools: ynl: Fix genlmsg header encoding formatsDonald Hunter1-3/+3
2023-03-16ynl: make the tooling check the licenseJakub Kicinski1-0/+8
2023-03-16tools: ynl: make definitions optional againJakub Kicinski1-1/+2
2023-03-10tools: ynl: fix get_mask utility routineLorenzo Bianconi1-4/+2
2023-03-08tools: ynl: fix enum-as-flags in the generic CLIJakub Kicinski2-9/+7
2023-03-08tools: ynl: move the enum classes to shared codeJakub Kicinski2-3/+100
2023-03-07ynl: re-license uniformly under GPL-2.0 OR BSD-3-ClauseJakub Kicinski3-3/+3
2023-03-03tools: ynl: use 1 as the default for first entry in attrs/opsJakub Kicinski1-3/+3
2023-03-03tools: ynl: fully inherit attrs in subsetsJakub Kicinski1-8/+15
2023-02-24tools: net: add __pycache__ to gitignoreJakub Kicinski1-0/+1
2023-02-24tools: ynl-gen: re-raise the exception instead of printingJakub Kicinski1-3/+1
2023-01-31tools: ynl: load jsonschema on demandJakub Kicinski1-1/+10
2023-01-31tools: ynl: use operation names from spec on the CLIJakub Kicinski1-0/+6
2023-01-31tools: ynl: support pretty printing bad attribute namesJakub Kicinski1-0/+40
2023-01-31tools: ynl: support multi-attrJakub Kicinski1-7/+14
2023-01-31tools: ynl: support directional enum-model in CLIJakub Kicinski1-4/+4
2023-01-31tools: ynl: add support for types needed by ethtoolJakub Kicinski1-1/+10
2023-01-31tools: ynl: use the common YAML loading and validation codeJakub Kicinski1-93/+25
2023-01-31tools: ynl: add an object hierarchy to represent parsed specJakub Kicinski2-1/+304
2023-01-31tools: ynl: move the cli and netlink code aroundJakub Kicinski2-0/+539