aboutsummaryrefslogtreecommitdiffstats
path: root/tools/net
AgeCommit message (Expand)AuthorFilesLines
2024-04-23tools: ynl: don't ignore errors in NLMSG_DONE messagesJakub Kicinski1-0/+1
2024-03-22tools: ynl: fix setting presence bits in simple nestsJakub Kicinski1-2/+5
2024-03-19tools: ynl: add header guards for nlctrlJakub Kicinski1-0/+1
2024-03-11netlink: specs: support generating code for genl socket privJakub Kicinski2-0/+12
2024-03-11tools: ynl: remove trailing semicolonJakub Kicinski1-1/+1
2024-03-11tools: ynl-gen: support using pre-defined values in attr checksHangbin Liu1-0/+2
2024-03-11ynl: samples: fix recycling rate calculationJakub Kicinski1-0/+2
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: Fix c codegen for array-nestDonald Hunter1-1/+1
2024-03-07tools/net/ynl: Report netlink errors without stacktraceDonald Hunter2-9/+13
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: add --dbg-small-recv for easier kernel testingJakub Kicinski1-1/+6
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 Kicinski3-3/+3
2024-03-06tools: ynl: rename make hardclean -> distcleanJakub Kicinski4-5/+5
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 Kicinski4-6/+2
2024-02-28tools: ynl: stop using mnl socket helpersJakub Kicinski3-22/+42
2024-02-28tools: ynl: switch away from MNL_CB_*Jakub Kicinski3-34/+40
2024-02-28tools: ynl: switch away from mnl_cb_tJakub Kicinski3-18/+21
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 Kicinski3-11/+1
2024-02-28tools: ynl: make yarg the first member of struct ynl_dump_stateJakub Kicinski3-7/+6
2024-02-28tools: ynl: create local ARRAY_SIZE() helperJakub Kicinski2-2/+5
2024-02-28tools: ynl: create local nlmsg access helpersJakub Kicinski3-17/+52
2024-02-28tools: ynl: create local for_each helpersJakub Kicinski3-10/+57
2024-02-28tools: ynl: create local attribute helpersJakub Kicinski3-74/+227
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-28tools: ynl: protect from old OvS headersJakub Kicinski1-0/+3
2024-02-23tools: ynl: fix header guardsJakub Kicinski1-2/+2
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-02-02tools: ynl: auto-gen for all genetlink familiesJakub Kicinski1-1/+4
2024-02-02tools: ynl: generate code for ovs familiesJakub Kicinski3-1/+62
2024-02-02tools: ynl: include dpll and mptcp_pm in C codegenJakub Kicinski2-1/+3
2024-01-31tools/net/ynl: Add type info to struct members in generated docsDonald Hunter1-1/+8
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
2024-01-31tools/net/ynl: Add --output-json arg to ynl cliDonald Hunter1-3/+19
2023-12-18tools/net/ynl-gen-rst: Remove extra indentation from generated docsDonald Hunter1-3/+3
2023-12-18tools/net/ynl-gen-rst: Remove bold from attribute-set headingsDonald Hunter1-1/+1
2023-12-18tools/net/ynl-gen-rst: Sort the index of generated netlink specsDonald Hunter1-1/+1
2023-12-18tools/net/ynl-gen-rst: Add sub-messages to generated docsDonald Hunter1-0/+23
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: print prototypes for recursive stuffJakub Kicinski1-5/+39
2023-12-14tools: ynl-gen: store recursive nests by a pointerJakub Kicinski1-2/+14
2023-12-14tools: ynl-gen: re-sort ignoring recursive nestsJakub Kicinski1-21/+31
2023-12-14tools: ynl-gen: record information about recursive nestsJakub Kicinski1-2/+17
2023-12-14tools: ynl-gen: fill in implementations for TypeUnusedJakub Kicinski1-0/+9
2023-12-14tools: ynl-gen: support fixed headers in genetlinkJakub Kicinski3-8/+45
2023-12-14tools: ynl-gen: use enum user type for members and argsJakub Kicinski1-3/+2
2023-12-14tools: ynl-gen: add missing request free helpers for dumpsJakub Kicinski1-0/+1
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-12-05tools: ynl: remove generated user space code from gitJakub Kicinski13-26838/+2
2023-12-04netdev-genl: spec: Add PID in netdev netlink YAML specAmritha Nambiar2-0/+8
2023-12-04netdev-genl: spec: Add irq in netdev netlink YAML specAmritha Nambiar2-0/+8
2023-12-04netdev-genl: spec: Extend netdev netlink spec in YAML for NAPIAmritha Nambiar2-0/+199
2023-12-04netdev-genl: spec: Extend netdev netlink spec in YAML for queueAmritha Nambiar2-0/+252
2023-11-30docs: netlink: link to family documentations from spec infoJakub Kicinski1-1/+7
2023-11-30Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski3-2/+30
2023-11-30Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski5-55/+102
2023-11-29tools: ynl: don't skip regeneration from make targetsJakub Kicinski2-6/+10
2023-11-29tools: ynl: order building samples after generated codeJakub Kicinski1-0/+2
2023-11-29tools: ynl: make sure we use local headers for page-poolJakub Kicinski1-0/+2
2023-11-29tools: ynl: fix build of the page-pool sampleJakub Kicinski1-1/+1
2023-11-29tools: ynl: Print xsk-features from the sampleStanislav Fomichev1-2/+8
2023-11-29xsk: Add TX timestamp and TX checksum offload supportStanislav Fomichev2-0/+22
2023-11-29tools: ynl-gen: always construct struct ynl_req_stateJakub Kicinski5-55/+102
2023-11-28tools: ynl: add sample for getting page-pool informationJakub Kicinski6-2/+740
2023-11-24tools: ynl-gen: use enum name from the specJakub Kicinski1-5/+9
2023-11-24tools: ynl-get: use family c-nameJakub Kicinski1-23/+23
2023-11-24tools: ynl-gen: always append ULL/LL to range typesJakub Kicinski1-2/+3
2023-11-24Documentation: Document each netlink familyBreno Leitao1-0/+388
2023-11-23tools: ynl: fix duplicate op name in devlinkJakub Kicinski2-1/+7
2023-11-23tools: ynl: fix header path for nfsdJakub Kicinski1-1/+1
2023-11-06nfsd: regenerate user space parsers after ynl-gen changesJakub Kicinski2-11/+153
2023-11-01tools: ynl-gen: don't touch the output file if content is the sameJakub Kicinski1-1/+6
2023-11-01netlink: specs: devlink: add forgotten port function caps enum valuesJiri Pirko1-0/+2
2023-10-31Merge tag 'net-next-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds17-153/+7556
2023-10-30Merge tag 'nfsd-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linuxLinus Torvalds4-1/+130
2023-10-27tools: ynl: introduce option to process unknown attributes or typesJiri Pirko2-12/+39
2023-10-26tools: ynl-gen: respect attr-cnt-name at the attr set levelJakub Kicinski1-3/+4
2023-10-26netlink: specs: support conditional operationsJakub Kicinski1-0/+22
2023-10-26netlink: make range pointers in policies constJakub Kicinski1-1/+1
2023-10-24tools: ynl-gen: add support for exact-len validationDavide Caratti1-11/+17
2023-10-23Merge branch 'devlink-finish-conversion-to-generated-split_ops'Jakub Kicinski6-15/+7185
2023-10-23netlink: specs: devlink: add the remaining command to generate complete split...Jiri Pirko2-1/+7122
2023-10-23netlink: specs: devlink: remove reload-action from devlink-get cmd replyJiri Pirko2-7/+0
2023-10-23tools: ynl-gen: render rsp_parse() helpers if cmd has only dump opJiri Pirko1-4/+7
2023-10-23tools: ynl-gen: introduce support for bitfield32 attribute typeJiri Pirko4-3/+56
2023-10-23tools: ynl-gen: change spacing around __attribute__Jakub Kicinski7-64/+64
2023-10-20netlink: specs: add support for auto-sized scalarsJakub Kicinski5-2/+47
2023-10-20tools: ynl-gen: make the mnl_type() method publicJakub Kicinski1-20/+18
2023-10-19tools: ynl-gen: support limit namesJakub Kicinski1-11/+34
2023-10-19tools: ynl-gen: support full range of min/max checks for integer valuesJakub Kicinski1-7/+59
2023-10-19tools: ynl-gen: track attribute useJakub Kicinski1-0/+20
2023-10-19Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-27/+27
2023-10-17tools: ynl: fix converting flags to names after recent cleanupJakub Kicinski1-1/+1
2023-10-16tools: ynl: Add source files for nfsd netlink protocolChuck Lever4-1/+130
2023-10-13netlink: specs: devlink: fix reply command valuesJiri Pirko1-27/+27
2023-10-11tools: ynl: use ynl-gen -o instead of stdout in MakefileJakub Kicinski1-2/+2
2023-10-09tools: ynl-gen: handle do ops with no input attrsJakub Kicinski1-6/+11
2023-10-06tools: ynl-gen: use uapi header name for the header guardJakub Kicinski1-1/+5
2023-10-04tools: ynl: use uAPI include magic for samplesJakub Kicinski1-1/+4
2023-10-04tools: ynl: don't regen on every makeJakub Kicinski2-2/+1
2023-10-02handshake: Fix sign of key_serial_t fieldsChuck Lever1-2/+2
2023-10-02handshake: Fix sign of socket file descriptor fieldsChuck Lever1-3/+3
2023-09-15tools: ynl: extend netdev sample to dump xdp-rx-metadata-featuresStanislav Fomichev4-2/+30
2023-08-27tools/net/ynl: Add support for create flagsDonald Hunter3-8/+22
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-25tools: ynl-gen: fix uAPI generation after tempfile changesJakub Kicinski1-10/+20
2023-08-24tools: ynl-gen: support empty attribute listsJakub Kicinski1-2/+9
2023-08-24tools: ynl-gen: fix collecting global policy attrsJakub Kicinski1-1/+3
2023-08-24tools: ynl-gen: set length of binary fieldsJakub Kicinski3-0/+11
2023-08-24tools: ynl: allow passing binary dataJakub Kicinski1-1/+6
2023-08-19tools: ynl-gen: use temporary file for renderingJiri Pirko1-2/+8
2023-08-15tools: ynl: add more info to KeyErrors on missing attrsJakub Kicinski1-3/+12
2023-08-14netlink: specs: devlink: extend health reporter dump attributes by port indexJiri Pirko2-0/+11
2023-08-14netlink: specs: devlink: extend per-instance dump commands to accept instance...Jiri Pirko2-26/+643
2023-08-14netlink: specs: devlink: add commands that do per-instance dumpJiri Pirko2-0/+3352
2023-08-09tools: ynl-gen: add missing empty line between policiesJakub Kicinski1-0/+1
2023-08-09tools: ynl-gen: avoid rendering empty validate fieldJiri Pirko1-3/+4
2023-08-04netlink: specs: devlink: add info-get dump opJiri Pirko2-0/+63
2023-08-04ynl-gen-c.py: render netlink policies static for split opsJiri Pirko1-2/+6
2023-08-04ynl-gen-c.py: allow directional model for kernel modeJiri Pirko1-1/+1
2023-08-04ynl-gen-c.py: filter rendering of validate field values for split opsJiri Pirko1-1/+9
2023-07-28ynl: print xdp-zc-max-segs in the sampleStanislav Fomichev1-0/+2
2023-07-28ynl: regenerate all headersStanislav Fomichev4-0/+14
2023-07-28ynl: mark max/mask as private for kdocStanislav Fomichev1-0/+1
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-22tools: ynl: improve the direct-include header guard logicJakub Kicinski1-14/+6
2023-06-15tools: ynl: work around stale system headersJakub Kicinski3-3/+35
2023-06-13tools: ynl-gen: inherit policy in multi-attrJakub Kicinski1-18/+24
2023-06-13tools: ynl-gen: correct enum policiesJakub Kicinski1-2/+13
2023-06-12tools: ynl: add sample for ethtoolJakub Kicinski2-0/+66
2023-06-12tools: ynl: generate code for the ethtool familyJakub Kicinski3-3/+11890
2023-06-12tools: ynl-gen: resolve enum vs struct name conflictsJakub Kicinski1-5/+20
2023-06-12tools: ynl-gen: don't generate enum types if unnamedJakub Kicinski1-2/+10
2023-06-12netlink: specs: support setting prefix-name per attributeJakub Kicinski1-2/+5
2023-06-12tools: ynl-gen: record extra args for regenJakub Kicinski2-1/+8
2023-06-12tools: ynl-gen: support excluding tricky opsJakub Kicinski2-5/+17
2023-06-09tools: ynl-gen: support / skip pads on the way to kernelJakub Kicinski1-0/+6
2023-06-09tools: ynl-gen: don't pass op_name to RenderInfoJakub Kicinski1-19/+18
2023-06-09tools: ynl-gen: support code gen for eventsJakub Kicinski2-6/+13
2023-06-09tools: ynl-gen: sanitize notification trackingJakub Kicinski2-43/+27
2023-06-09tools: ynl: regen: stop generating common notification handlersJakub Kicinski4-98/+0
2023-06-09tools: ynl-gen: stop generating common notification handlersJakub Kicinski1-73/+0
2023-06-09tools: ynl: regen: regenerate the if laddersJakub Kicinski4-74/+67
2023-06-09tools: ynl-gen: get attr type outside of if()Jakub Kicinski1-1/+3
2023-06-09tools: ynl-gen: combine else with closing bracketJakub Kicinski1-4/+19
2023-06-09tools: ynl-gen: complete the C keyword listJakub Kicinski1-1/+34
2023-06-09tools: ynl: regen: cleanup user space header includesJakub Kicinski4-12/+4
2023-06-09tools: ynl-gen: cleanup user space header includesJakub Kicinski1-4/+1
2023-06-09Revert "tools: ynl: Remove duplicated include in handshake-user.c"Jakub Kicinski1-0/+1
2023-06-09tools: ynl: Remove duplicated include in handshake-user.cYang Li1-1/+0
2023-06-08tools: ynl: add sample for devlinkJakub Kicinski2-0/+61
2023-06-08tools: ynl: generate code for the devlink familyJakub Kicinski3-1/+932
2023-06-08tools: ynl-gen: don't generate forward declarations for policies - regenJakub Kicinski3-8/+0
2023-06-08tools: ynl-gen: don't generate forward declarations for policiesJakub Kicinski1-9/+3
2023-06-08tools: ynl-gen: walk nested types in depthJakub Kicinski1-12/+29
2023-06-08tools: ynl-gen: inherit struct use infoJakub Kicinski1-0/+8
2023-06-08tools: ynl-gen: try to sort the types more intelligentlyJakub Kicinski1-2/+24
2023-06-08tools: ynl-gen: enable code gen for directional specsJakub Kicinski2-6/+11
2023-06-08tools: ynl-gen: refactor strmap helper generationJakub Kicinski1-19/+17
2023-06-08tools: ynl-gen: use enum names in op strmap more carefullyJakub Kicinski3-2/+9
2023-06-07tools: ynl: generate code for the handshake familyJakub Kicinski3-1/+534
2023-06-07tools: ynl-gen: improve unwind on parsing errorsJakub Kicinski1-5/+17
2023-06-07tools: ynl-gen: fill in support for MultiAttr scalarsJakub Kicinski1-5/+42
2023-06-06tools: ynl: add sample for netdevJakub Kicinski3-0/+137