Skip to content

Commit acf4da1

Browse files
committed
netlink: specs: rt-link: add an attr layer around alt-ifname
alt-ifname attr is directly placed in requests (as an alternative to ifname) but in responses its wrapped up in IFLA_PROP_LIST and only there is may be multi-attr. See rtnl_fill_prop_list(). Fixes: b2f63d9 ("doc/netlink: Add spec for rt link messages") Reviewed-by: Donald Hunter <[email protected]> Reviewed-by: Jacob Keller <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 57e7ded commit acf4da1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Documentation/netlink/specs/rt_link.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,11 +1113,10 @@ attribute-sets:
11131113
-
11141114
name: prop-list
11151115
type: nest
1116-
nested-attributes: link-attrs
1116+
nested-attributes: prop-list-link-attrs
11171117
-
11181118
name: alt-ifname
11191119
type: string
1120-
multi-attr: true
11211120
-
11221121
name: perm-address
11231122
type: binary
@@ -1163,6 +1162,13 @@ attribute-sets:
11631162
-
11641163
name: netns-immutable
11651164
type: u8
1165+
-
1166+
name: prop-list-link-attrs
1167+
subset-of: link-attrs
1168+
attributes:
1169+
-
1170+
name: alt-ifname
1171+
multi-attr: true
11661172
-
11671173
name: af-spec-attrs
11681174
attributes:
@@ -2453,7 +2459,6 @@ operations:
24532459
- min-mtu
24542460
- max-mtu
24552461
- prop-list
2456-
- alt-ifname
24572462
- perm-address
24582463
- proto-down-reason
24592464
- parent-dev-name

0 commit comments

Comments
 (0)