doc/netlink/specs: use pad in structs in rt_link
authorDonald Hunter <donald.hunter@gmail.com>
Fri, 15 Dec 2023 09:37:14 +0000 (09:37 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 18 Dec 2023 22:39:44 +0000 (14:39 -0800)
The rt_link spec was using pad1, pad2 attributes in structs which
appears in the ynl output. Replace this with the 'pad' type which
doesn't pollute the output.

Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20231215093720.18774-8-donald.hunter@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/rt_link.yaml

index ea6a6157d718e12c4ed19caa4c89f596b237d3f9..1ad01d52a8638dcf6ee8a1c6c3d58698abd0d8e4 100644 (file)
@@ -66,8 +66,9 @@ definitions:
         name: ifi-family
         type: u8
       -
-        name: padding
-        type: u8
+        name: pad
+        type: pad
+        len: 1
       -
         name: ifi-type
         type: u16
@@ -719,11 +720,9 @@ definitions:
         name: family
         type: u8
       -
-        name: pad1
-        type: u8
-      -
-        name: pad2
-        type: u16
+        name: pad
+        type: pad
+        len: 3
       -
         name: ifindex
         type: u32