Commit 34493336 authored by Jiri Pirko's avatar Jiri Pirko Committed by Jakub Kicinski

netlink: specs: devlink: extend per-instance dump commands to accept instance attributes

Extend per-instance dump command definitions to accept instance
attributes. Allow parsing of devlink handle attributes so they could
be used for instance selection.

Re-generate the related code.
Signed-off-by: default avatarJiri Pirko <jiri@nvidia.com>
Acked-by: default avatarJakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20230811155714.1736405-12-jiri@resnulli.usSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 4a1b5aa8
...@@ -284,7 +284,6 @@ operations: ...@@ -284,7 +284,6 @@ operations:
attribute-set: devlink attribute-set: devlink
dont-validate: dont-validate:
- strict - strict
- dump
do: do:
pre: devlink-nl-pre-doit-port pre: devlink-nl-pre-doit-port
...@@ -299,6 +298,8 @@ operations: ...@@ -299,6 +298,8 @@ operations:
value: 7 value: 7
attributes: *port-id-attrs attributes: *port-id-attrs
dump: dump:
request:
attributes: *dev-id-attrs
reply: reply:
value: 3 # due to a bug, port dump returns DEVLINK_CMD_NEW value: 3 # due to a bug, port dump returns DEVLINK_CMD_NEW
attributes: *port-id-attrs attributes: *port-id-attrs
...@@ -311,7 +312,6 @@ operations: ...@@ -311,7 +312,6 @@ operations:
attribute-set: devlink attribute-set: devlink
dont-validate: dont-validate:
- strict - strict
- dump
do: do:
pre: devlink-nl-pre-doit pre: devlink-nl-pre-doit
...@@ -326,6 +326,8 @@ operations: ...@@ -326,6 +326,8 @@ operations:
value: 11 value: 11
attributes: *sb-id-attrs attributes: *sb-id-attrs
dump: dump:
request:
attributes: *dev-id-attrs
reply: *sb-get-reply reply: *sb-get-reply
# TODO: fill in the operations in between # TODO: fill in the operations in between
...@@ -336,7 +338,6 @@ operations: ...@@ -336,7 +338,6 @@ operations:
attribute-set: devlink attribute-set: devlink
dont-validate: dont-validate:
- strict - strict
- dump
do: do:
pre: devlink-nl-pre-doit pre: devlink-nl-pre-doit
...@@ -352,6 +353,8 @@ operations: ...@@ -352,6 +353,8 @@ operations:
value: 15 value: 15
attributes: *sb-pool-id-attrs attributes: *sb-pool-id-attrs
dump: dump:
request:
attributes: *dev-id-attrs
reply: *sb-pool-get-reply reply: *sb-pool-get-reply
# TODO: fill in the operations in between # TODO: fill in the operations in between
...@@ -362,7 +365,6 @@ operations: ...@@ -362,7 +365,6 @@ operations:
attribute-set: devlink attribute-set: devlink
dont-validate: dont-validate:
- strict - strict
- dump
do: do:
pre: devlink-nl-pre-doit-port pre: devlink-nl-pre-doit-port
...@@ -379,6 +381,8 @@ operations: ...@@ -379,6 +381,8 @@ operations:
value: 19 value: 19
attributes: *sb-port-pool-id-attrs attributes: *sb-port-pool-id-attrs
dump: dump:
request:
attributes: *dev-id-attrs
reply: *sb-port-pool-get-reply reply: *sb-port-pool-get-reply
# TODO: fill in the operations in between # TODO: fill in the operations in between
...@@ -389,7 +393,6 @@ operations: ...@@ -389,7 +393,6 @@ operations:
attribute-set: devlink attribute-set: devlink
dont-validate: dont-validate:
- strict - strict
- dump
do: do:
pre: devlink-nl-pre-doit-port pre: devlink-nl-pre-doit-port
...@@ -407,6 +410,8 @@ operations: ...@@ -407,6 +410,8 @@ operations:
value: 23 value: 23
attributes: *sb-tc-pool-bind-id-attrs attributes: *sb-tc-pool-bind-id-attrs
dump: dump:
request:
attributes: *dev-id-attrs
reply: *sb-tc-pool-bind-get-reply reply: *sb-tc-pool-bind-get-reply
# TODO: fill in the operations in between # TODO: fill in the operations in between
...@@ -417,7 +422,6 @@ operations: ...@@ -417,7 +422,6 @@ operations:
attribute-set: devlink attribute-set: devlink
dont-validate: dont-validate:
- strict - strict
- dump
do: do:
pre: devlink-nl-pre-doit pre: devlink-nl-pre-doit
...@@ -432,6 +436,8 @@ operations: ...@@ -432,6 +436,8 @@ operations:
value: 38 value: 38
attributes: *param-id-attrs attributes: *param-id-attrs
dump: dump:
request:
attributes: *dev-id-attrs
reply: *param-get-reply reply: *param-get-reply
# TODO: fill in the operations in between # TODO: fill in the operations in between
...@@ -442,7 +448,6 @@ operations: ...@@ -442,7 +448,6 @@ operations:
attribute-set: devlink attribute-set: devlink
dont-validate: dont-validate:
- strict - strict
- dump
do: do:
pre: devlink-nl-pre-doit-port-optional pre: devlink-nl-pre-doit-port-optional
...@@ -458,6 +463,8 @@ operations: ...@@ -458,6 +463,8 @@ operations:
value: 42 value: 42
attributes: *region-id-attrs attributes: *region-id-attrs
dump: dump:
request:
attributes: *dev-id-attrs
reply: *region-get-reply reply: *region-get-reply
# TODO: fill in the operations in between # TODO: fill in the operations in between
...@@ -495,7 +502,6 @@ operations: ...@@ -495,7 +502,6 @@ operations:
attribute-set: devlink attribute-set: devlink
dont-validate: dont-validate:
- strict - strict
- dump
do: do:
pre: devlink-nl-pre-doit-port-optional pre: devlink-nl-pre-doit-port-optional
...@@ -509,6 +515,8 @@ operations: ...@@ -509,6 +515,8 @@ operations:
reply: &health-reporter-get-reply reply: &health-reporter-get-reply
attributes: *health-reporter-id-attrs attributes: *health-reporter-id-attrs
dump: dump:
request:
attributes: *dev-id-attrs
reply: *health-reporter-get-reply reply: *health-reporter-get-reply
# TODO: fill in the operations in between # TODO: fill in the operations in between
...@@ -519,7 +527,6 @@ operations: ...@@ -519,7 +527,6 @@ operations:
attribute-set: devlink attribute-set: devlink
dont-validate: dont-validate:
- strict - strict
- dump
do: do:
pre: devlink-nl-pre-doit pre: devlink-nl-pre-doit
...@@ -534,6 +541,8 @@ operations: ...@@ -534,6 +541,8 @@ operations:
value: 61 value: 61
attributes: *trap-id-attrs attributes: *trap-id-attrs
dump: dump:
request:
attributes: *dev-id-attrs
reply: *trap-get-reply reply: *trap-get-reply
# TODO: fill in the operations in between # TODO: fill in the operations in between
...@@ -544,7 +553,6 @@ operations: ...@@ -544,7 +553,6 @@ operations:
attribute-set: devlink attribute-set: devlink
dont-validate: dont-validate:
- strict - strict
- dump
do: do:
pre: devlink-nl-pre-doit pre: devlink-nl-pre-doit
...@@ -559,6 +567,8 @@ operations: ...@@ -559,6 +567,8 @@ operations:
value: 65 value: 65
attributes: *trap-group-id-attrs attributes: *trap-group-id-attrs
dump: dump:
request:
attributes: *dev-id-attrs
reply: *trap-group-get-reply reply: *trap-group-get-reply
# TODO: fill in the operations in between # TODO: fill in the operations in between
...@@ -569,7 +579,6 @@ operations: ...@@ -569,7 +579,6 @@ operations:
attribute-set: devlink attribute-set: devlink
dont-validate: dont-validate:
- strict - strict
- dump
do: do:
pre: devlink-nl-pre-doit pre: devlink-nl-pre-doit
...@@ -584,6 +593,8 @@ operations: ...@@ -584,6 +593,8 @@ operations:
value: 69 value: 69
attributes: *trap-policer-id-attrs attributes: *trap-policer-id-attrs
dump: dump:
request:
attributes: *dev-id-attrs
reply: *trap-policer-get-reply reply: *trap-policer-get-reply
# TODO: fill in the operations in between # TODO: fill in the operations in between
...@@ -594,7 +605,6 @@ operations: ...@@ -594,7 +605,6 @@ operations:
attribute-set: devlink attribute-set: devlink
dont-validate: dont-validate:
- strict - strict
- dump
do: do:
pre: devlink-nl-pre-doit pre: devlink-nl-pre-doit
...@@ -610,6 +620,8 @@ operations: ...@@ -610,6 +620,8 @@ operations:
value: 74 value: 74
attributes: *rate-id-attrs attributes: *rate-id-attrs
dump: dump:
request:
attributes: *dev-id-attrs
reply: *rate-get-reply reply: *rate-get-reply
# TODO: fill in the operations in between # TODO: fill in the operations in between
...@@ -620,7 +632,6 @@ operations: ...@@ -620,7 +632,6 @@ operations:
attribute-set: devlink attribute-set: devlink
dont-validate: dont-validate:
- strict - strict
- dump
do: do:
pre: devlink-nl-pre-doit pre: devlink-nl-pre-doit
...@@ -635,6 +646,8 @@ operations: ...@@ -635,6 +646,8 @@ operations:
value: 78 value: 78
attributes: *linecard-id-attrs attributes: *linecard-id-attrs
dump: dump:
request:
attributes: *dev-id-attrs
reply: *linecard-get-reply reply: *linecard-get-reply
# TODO: fill in the operations in between # TODO: fill in the operations in between
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment