diff options
author | Donald Hunter <donald.hunter@gmail.com> | 2023-03-27 11:31:35 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-03-29 09:54:43 +0300 |
commit | f036d936ca57e8bc1f39b92cadfbac27095dc4e7 (patch) | |
tree | a957b1e83af3def609f4da7c057c041f7b1bd8b4 /Documentation/netlink/genetlink-legacy.yaml | |
parent | 2607191395bd4db544db05452625cd7e98bc0848 (diff) | |
download | linux-f036d936ca57e8bc1f39b92cadfbac27095dc4e7.tar.xz |
tools: ynl: Add fixed-header support to ynl
Add support for netlink families that add an optional fixed header structure
after the genetlink header and before any attributes. The fixed-header can be
specified on a per op basis, or once for all operations, which serves as a
default value that can be overridden.
Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'Documentation/netlink/genetlink-legacy.yaml')
-rw-r--r-- | Documentation/netlink/genetlink-legacy.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/netlink/genetlink-legacy.yaml b/Documentation/netlink/genetlink-legacy.yaml index d50c78b9f42d..b33541a51d6b 100644 --- a/Documentation/netlink/genetlink-legacy.yaml +++ b/Documentation/netlink/genetlink-legacy.yaml @@ -261,6 +261,14 @@ properties: async-enum: description: Name for the enum type with notifications/events. type: string + # Start genetlink-legacy + fixed-header: &fixed-header + description: | + Name of the structure defining the optional fixed-length protocol + header. This header is placed in a message after the netlink and + genetlink headers and before any attributes. + type: string + # End genetlink-legacy list: description: List of commands type: array @@ -293,6 +301,9 @@ properties: type: array items: enum: [ strict, dump ] + # Start genetlink-legacy + fixed-header: *fixed-header + # End genetlink-legacy do: &subop-type description: Main command handler. type: object |