[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240219172628.71455-3-jiri@resnulli.us>
Date: Mon, 19 Feb 2024 18:26:27 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: netdev@...r.kernel.org
Cc: kuba@...nel.org,
pabeni@...hat.com,
davem@...emloft.net,
edumazet@...gle.com,
jacob.e.keller@...el.com,
swarupkotikalapudi@...il.com,
donald.hunter@...il.com,
sdf@...gle.com,
lorenzo@...nel.org,
alessandromarcolini99@...il.com
Subject: [patch net-next 12/13] netlink: specs: devlink: add missing fmsg-obj-value-data attribute definitions
From: Jiri Pirko <jiri@...dia.com>
Add missing fmsg-obj-value-data definition. Use newly introduced
sub-message replace-attribute infrastructure to allow to process
attribute type selected by fmsg-obj-value-type.
Signed-off-by: Jiri Pirko <jiri@...dia.com>
---
Documentation/netlink/specs/devlink.yaml | 89 ++++++++++++++++++++++--
1 file changed, 85 insertions(+), 4 deletions(-)
diff --git a/Documentation/netlink/specs/devlink.yaml b/Documentation/netlink/specs/devlink.yaml
index fa4440141b05..d2bc0e366d09 100644
--- a/Documentation/netlink/specs/devlink.yaml
+++ b/Documentation/netlink/specs/devlink.yaml
@@ -641,13 +641,14 @@ attribute-sets:
name: fmsg-obj-value-type
type: u8
enum: fmsg-obj-value-type
-
- # TODO: fill in the attributes in between
-
+ -
+ name: fmsg-obj-value-data
+ type: sub-message
+ sub-message: dl-fmsg-obj-value-data-msg
+ selector: fmsg-obj-value-type
-
name: health-reporter
type: nest
- value: 114
nested-attributes: dl-health-reporter
-
name: health-reporter-name
@@ -1226,6 +1227,10 @@ attribute-sets:
name: fmsg-nest-end
-
name: fmsg-obj-name
+ -
+ name: fmsg-obj-value-type
+ -
+ name: fmsg-obj-value-data
-
name: dl-health-reporter
@@ -1331,6 +1336,54 @@ attribute-sets:
name: param-value-data
type: flag
+ -
+ name: dl-fmsg-obj-value-data-u8-attrs
+ subset-of: devlink
+ attributes:
+ -
+ name: fmsg-obj-value-data
+ type: u8
+
+ -
+ name: dl-fmsg-obj-value-data-u32-attrs
+ subset-of: devlink
+ attributes:
+ -
+ name: fmsg-obj-value-data
+ type: u32
+
+ -
+ name: dl-fmsg-obj-value-data-u64-attrs
+ subset-of: devlink
+ attributes:
+ -
+ name: fmsg-obj-value-data
+ type: u64
+
+ -
+ name: dl-fmsg-obj-value-data-flag-attrs
+ subset-of: devlink
+ attributes:
+ -
+ name: fmsg-obj-value-data
+ type: flag
+
+ -
+ name: dl-fmsg-obj-value-data-string-attrs
+ subset-of: devlink
+ attributes:
+ -
+ name: fmsg-obj-value-data
+ type: string
+
+ -
+ name: dl-fmsg-obj-value-data-binary-attrs
+ subset-of: devlink
+ attributes:
+ -
+ name: fmsg-obj-value-data
+ type: binary
+
sub-messages:
-
name: dl-param-value-data-msg
@@ -1356,6 +1409,34 @@ sub-messages:
attribute-set: dl-param-value-data-flag-attrs
attribute-replace: true
+ -
+ name: dl-fmsg-obj-value-data-msg
+ formats:
+ -
+ value: u8
+ attribute-set: dl-fmsg-obj-value-data-u8-attrs
+ attribute-replace: true
+ -
+ value: u32
+ attribute-set: dl-fmsg-obj-value-data-u32-attrs
+ attribute-replace: true
+ -
+ value: u64
+ attribute-set: dl-fmsg-obj-value-data-u64-attrs
+ attribute-replace: true
+ -
+ value: flag
+ attribute-set: dl-fmsg-obj-value-data-flag-attrs
+ attribute-replace: true
+ -
+ value: string
+ attribute-set: dl-fmsg-obj-value-data-string-attrs
+ attribute-replace: true
+ -
+ value: binary
+ attribute-set: dl-fmsg-obj-value-data-binary-attrs
+ attribute-replace: true
+
operations:
enum-model: directional
list:
--
2.43.2
Powered by blists - more mailing lists