]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
netlink: specs: support nested structs in genetlink legacy
authorDonald Hunter <donald.hunter@gmail.com>
Tue, 11 Feb 2025 12:01:25 +0000 (12:01 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 13 Feb 2025 03:32:20 +0000 (19:32 -0800)
Nested structs are already supported in netlink-raw. Add the same
capability to the genetlink legacy schema.

Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20250211120127.84858-9-donald.hunter@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/genetlink-legacy.yaml

index ed64acf1bef775652509b47dd9d0589703d793cd..c02ed8089746080d34ac8b47b36f27e240b303f1 100644 (file)
@@ -152,6 +152,9 @@ properties:
                   the right formatting mechanism when displaying values of this
                   type.
                 enum: [ hex, mac, fddi, ipv4, ipv6, uuid ]
+              struct:
+                description: Name of the nested struct type.
+                type: string
         # End genetlink-legacy
 
   attribute-sets: