[PATCH net-next v2 6/9] netlink: specs: devlink: populate multi-attr attrs for region read and line card
From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-09-15 16:13:53
Subsystem:
networking [general], the rest, yaml netlink (ynl) · Maintainers:
"David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds, Donald Hunter
Three attributes are emitted repeatedly inside their nest: - devlink_nl_region_read_fill() calls devlink_nl_cmd_region_read_chunk_fill() once per 256 byte unit - devlink_nl_region_snapshots_id_put() emits one DEVLINK_ATTR_REGION_SNAPSHOT sub-nest per entry on the region's snapshot list - devlink_nl_linecard_fill() emits one DEVLINK_ATTR_LINECARD_TYPE per linecard->types_count entry In all three cases we're missing the multi-attr properties, and the attributes themselves are missing from the attr list used by C code gen. Signed-off-by: Jakub Kicinski <kuba@kernel.org> --- v2: also update the attr list in the spec for region get --- Documentation/netlink/specs/devlink.yaml | 28 ++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-)
diff --git a/Documentation/netlink/specs/devlink.yaml b/Documentation/netlink/specs/devlink.yaml
index f23466fb27f9..5c9c672497d4 100644
--- a/Documentation/netlink/specs/devlink.yaml
+++ b/Documentation/netlink/specs/devlink.yaml@@ -1264,6 +1264,7 @@ doc: Partial family for Devlink. attributes: - name: region-snapshot + multi-attr: true - name: dl-region-snapshot
@@ -1278,6 +1279,7 @@ doc: Partial family for Devlink. attributes: - name: region-chunk + multi-attr: true - name: dl-region-chunk
@@ -1360,6 +1362,7 @@ doc: Partial family for Devlink. attributes: - name: linecard-type + multi-attr: true - name: dl-selftest-id
@@ -1971,7 +1974,7 @@ doc: Partial family for Devlink. post: devlink-nl-post-doit request: value: 42 - attributes: ®ion-id-attrs + attributes: - bus-name - dev-name - index
@@ -1979,7 +1982,15 @@ doc: Partial family for Devlink. - region-name reply: ®ion-get-reply value: 42 - attributes: *region-id-attrs + attributes: + - bus-name + - dev-name + - index + - port-index + - region-name + - region-size + - region-max-snapshots + - region-snapshots dump: request: attributes: *dev-id-attrs
@@ -2045,6 +2056,7 @@ doc: Partial family for Devlink. - index - port-index - region-name + - region-chunks - name: port-param-get
@@ -2444,14 +2456,22 @@ doc: Partial family for Devlink. post: devlink-nl-post-doit request: value: 78 - attributes: &linecard-id-attrs + attributes: - bus-name - dev-name - index - linecard-index reply: &linecard-get-reply value: 80 - attributes: *linecard-id-attrs + attributes: + - bus-name + - dev-name + - index + - linecard-index + - linecard-state + - linecard-type + - linecard-supported-types + - nested-devlink dump: request: attributes: *dev-id-attrs
--
2.55.0