Skip to content

Commit 6b4b075

Browse files
donaldhkuba-moo
authored andcommitted
doc/netlink/specs: use pad in structs in rt_link
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 077b602 commit 6b4b075

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Documentation/netlink/specs/rt_link.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ definitions:
6666
name: ifi-family
6767
type: u8
6868
-
69-
name: padding
70-
type: u8
69+
name: pad
70+
type: pad
71+
len: 1
7172
-
7273
name: ifi-type
7374
type: u16
@@ -719,11 +720,9 @@ definitions:
719720
name: family
720721
type: u8
721722
-
722-
name: pad1
723-
type: u8
724-
-
725-
name: pad2
726-
type: u16
723+
name: pad
724+
type: pad
725+
len: 3
727726
-
728727
name: ifindex
729728
type: u32

0 commit comments

Comments
 (0)