Commit 68c84289 authored by Swarup Laxman Kotiaklapudi's avatar Swarup Laxman Kotiaklapudi Committed by Jakub Kicinski

netlink: specs: devlink: add some(not all) missing attributes in devlink.yaml

Add some missing(not all) attributes in devlink.yaml.
Signed-off-by: default avatarSwarup Laxman Kotiaklapudi <swarupkotikalapudi@gmail.com>
Suggested-by: default avatarJiri Pirko <jiri@resnulli.us>
Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20231208182515.1206616-1-swarupkotikalapudi@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent b72137ec
...@@ -75,6 +75,14 @@ definitions: ...@@ -75,6 +75,14 @@ definitions:
name: ipsec-crypto-bit name: ipsec-crypto-bit
- -
name: ipsec-packet-bit name: ipsec-packet-bit
-
type: enum
name: rate-type
entries:
-
name: leaf
-
name: node
- -
type: enum type: enum
name: sb-threshold-type name: sb-threshold-type
...@@ -111,6 +119,16 @@ definitions: ...@@ -111,6 +119,16 @@ definitions:
name: none name: none
- -
name: basic name: basic
-
type: enum
name: dpipe-header-id
entries:
-
name: ethernet
-
name: ipv4
-
name: ipv6
- -
type: enum type: enum
name: dpipe-match-type name: dpipe-match-type
...@@ -174,6 +192,16 @@ definitions: ...@@ -174,6 +192,16 @@ definitions:
name: trap name: trap
- -
name: mirror name: mirror
-
type: enum
name: trap-type
entries:
-
name: drop
-
name: exception
-
name: control
attribute-sets: attribute-sets:
- -
...@@ -194,27 +222,45 @@ attribute-sets: ...@@ -194,27 +222,45 @@ attribute-sets:
name: port-type name: port-type
type: u16 type: u16
enum: port-type enum: port-type
-
# TODO: fill in the attributes in between name: port-desired-type
type: u16
-
name: port-netdev-ifindex
type: u32
-
name: port-netdev-name
type: string
-
name: port-ibdev-name
type: string
- -
name: port-split-count name: port-split-count
type: u32 type: u32
value: 9 -
name: port-split-group
# TODO: fill in the attributes in between type: u32
- -
name: sb-index name: sb-index
type: u32 type: u32
value: 11 -
name: sb-size
# TODO: fill in the attributes in between type: u32
-
name: sb-ingress-pool-count
type: u16
-
name: sb-egress-pool-count
type: u16
-
name: sb-ingress-tc-count
type: u16
-
name: sb-egress-tc-count
type: u16
- -
name: sb-pool-index name: sb-pool-index
type: u16 type: u16
value: 17
- -
name: sb-pool-type name: sb-pool-type
type: u8 type: u8
...@@ -232,16 +278,16 @@ attribute-sets: ...@@ -232,16 +278,16 @@ attribute-sets:
- -
name: sb-tc-index name: sb-tc-index
type: u16 type: u16
value: 22 -
name: sb-occ-cur
# TODO: fill in the attributes in between type: u32
-
name: sb-occ-max
type: u32
- -
name: eswitch-mode name: eswitch-mode
type: u16 type: u16
value: 25
enum: eswitch-mode enum: eswitch-mode
- -
name: eswitch-inline-mode name: eswitch-inline-mode
type: u16 type: u16
...@@ -347,6 +393,7 @@ attribute-sets: ...@@ -347,6 +393,7 @@ attribute-sets:
- -
name: dpipe-header-id name: dpipe-header-id
type: u32 type: u32
enum: dpipe-header-id
- -
name: dpipe-header-fields name: dpipe-header-fields
type: nest type: nest
...@@ -381,7 +428,6 @@ attribute-sets: ...@@ -381,7 +428,6 @@ attribute-sets:
- -
name: eswitch-encap-mode name: eswitch-encap-mode
type: u8 type: u8
value: 62
enum: eswitch-encap-mode enum: eswitch-encap-mode
- -
name: resource-list name: resource-list
...@@ -433,20 +479,25 @@ attribute-sets: ...@@ -433,20 +479,25 @@ attribute-sets:
name: port-flavour name: port-flavour
type: u16 type: u16
enum: port-flavour enum: port-flavour
-
# TODO: fill in the attributes in between name: port-number
type: u32
-
name: port-split-subport-number
type: u32
-
name: param
type: nest
nested-attributes: dl-param
- -
name: param-name name: param-name
type: string type: string
value: 81 -
name: param-generic
# TODO: fill in the attributes in between type: flag
- -
name: param-type name: param-type
type: u8 type: u8
value: 83
# TODO: fill in the attributes in between # TODO: fill in the attributes in between
...@@ -458,20 +509,34 @@ attribute-sets: ...@@ -458,20 +509,34 @@ attribute-sets:
- -
name: region-name name: region-name
type: string type: string
-
# TODO: fill in the attributes in between name: region-size
type: u64
-
name: region-snapshots
type: nest
nested-attributes: dl-region-snapshots
-
name: region-snapshot
type: nest
nested-attributes: dl-region-snapshot
- -
name: region-snapshot-id name: region-snapshot-id
type: u32 type: u32
value: 92 -
name: region-chunks
# TODO: fill in the attributes in between type: nest
nested-attributes: dl-region-chunks
-
name: region-chunk
type: nest
nested-attributes: dl-region-chunk
-
name: region-chunk-data
type: binary
- -
name: region-chunk-addr name: region-chunk-addr
type: u64 type: u64
value: 96
- -
name: region-chunk-len name: region-chunk-len
type: u64 type: u64
...@@ -502,14 +567,13 @@ attribute-sets: ...@@ -502,14 +567,13 @@ attribute-sets:
- -
name: info-version-value name: info-version-value
type: string type: string
-
# TODO: fill in the attributes in between name: sb-pool-cell-size
type: u32
- -
name: fmsg name: fmsg
type: nest type: nest
nested-attributes: dl-fmsg nested-attributes: dl-fmsg
value: 106
- -
name: fmsg-obj-nest-start name: fmsg-obj-nest-start
type: flag type: flag
...@@ -525,20 +589,35 @@ attribute-sets: ...@@ -525,20 +589,35 @@ attribute-sets:
- -
name: fmsg-obj-name name: fmsg-obj-name
type: string type: string
-
name: fmsg-obj-value-type
type: u8
# TODO: fill in the attributes in between # TODO: fill in the attributes in between
-
name: health-reporter
type: nest
value: 114
nested-attributes: dl-health-reporter
- -
name: health-reporter-name name: health-reporter-name
type: string type: string
value: 115 -
name: health-reporter-state
# TODO: fill in the attributes in between type: u8
-
name: health-reporter-err-count
type: u64
-
name: health-reporter-recover-count
type: u64
-
name: health-reporter-dump-ts
type: u64
- -
name: health-reporter-graceful-period name: health-reporter-graceful-period
type: u64 type: u64
value: 120
- -
name: health-reporter-auto-recover name: health-reporter-auto-recover
type: u8 type: u8
...@@ -548,55 +627,64 @@ attribute-sets: ...@@ -548,55 +627,64 @@ attribute-sets:
- -
name: flash-update-component name: flash-update-component
type: string type: string
-
# TODO: fill in the attributes in between name: flash-update-status-msg
type: string
-
name: flash-update-status-done
type: u64
-
name: flash-update-status-total
type: u64
- -
name: port-pci-pf-number name: port-pci-pf-number
type: u16 type: u16
value: 127 -
name: port-pci-vf-number
# TODO: fill in the attributes in between type: u16
-
name: stats
type: nest
nested-attributes: dl-attr-stats
- -
name: trap-name name: trap-name
type: string type: string
value: 130
- -
name: trap-action name: trap-action
type: u8 type: u8
enum: trap-action enum: trap-action
-
# TODO: fill in the attributes in between name: trap-type
type: u8
enum: trap-type
-
name: trap-generic
type: flag
-
name: trap-metadata
type: nest
nested-attributes: dl-trap-metadata
- -
name: trap-group-name name: trap-group-name
type: string type: string
value: 135
- -
name: reload-failed name: reload-failed
type: u8 type: u8
-
# TODO: fill in the attributes in between name: health-reporter-dump-ts-ns
type: u64
- -
name: netns-fd name: netns-fd
type: u32 type: u32
value: 138
- -
name: netns-pid name: netns-pid
type: u32 type: u32
- -
name: netns-id name: netns-id
type: u32 type: u32
# TODO: fill in the attributes in between
- -
name: health-reporter-auto-dump name: health-reporter-auto-dump
type: u8 type: u8
value: 141
- -
name: trap-policer-id name: trap-policer-id
type: u32 type: u32
...@@ -610,22 +698,29 @@ attribute-sets: ...@@ -610,22 +698,29 @@ attribute-sets:
name: port-function name: port-function
type: nest type: nest
nested-attributes: dl-port-function nested-attributes: dl-port-function
-
# TODO: fill in the attributes in between name: info-board-serial-number
type: string
-
name: port-lanes
type: u32
-
name: port-splittable
type: u8
-
name: port-external
type: u8
- -
name: port-controller-number name: port-controller-number
type: u32 type: u32
value: 150 -
name: flash-update-status-timeout
# TODO: fill in the attributes in between type: u64
- -
name: flash-update-overwrite-mask name: flash-update-overwrite-mask
type: bitfield32 type: bitfield32
enum: flash-overwrite enum: flash-overwrite
enum-as-flags: True enum-as-flags: True
value: 152
- -
name: reload-action name: reload-action
type: u8 type: u8
...@@ -673,20 +768,16 @@ attribute-sets: ...@@ -673,20 +768,16 @@ attribute-sets:
type: nest type: nest
multi-attr: true multi-attr: true
nested-attributes: dl-reload-act-stats nested-attributes: dl-reload-act-stats
# TODO: fill in the attributes in between
- -
name: port-pci-sf-number name: port-pci-sf-number
type: u32 type: u32
value: 164 -
name: rate-type
# TODO: fill in the attributes in between type: u16
enum: rate-type
- -
name: rate-tx-share name: rate-tx-share
type: u64 type: u64
value: 166
- -
name: rate-tx-max name: rate-tx-max
type: u64 type: u64
...@@ -696,20 +787,22 @@ attribute-sets: ...@@ -696,20 +787,22 @@ attribute-sets:
- -
name: rate-parent-node-name name: rate-parent-node-name
type: string type: string
-
# TODO: fill in the attributes in between name: region-max-snapshots
type: u32
- -
name: linecard-index name: linecard-index
type: u32 type: u32
value: 171 -
name: linecard-state
# TODO: fill in the attributes in between type: u8
- -
name: linecard-type name: linecard-type
type: string type: string
value: 173 -
name: linecard-supported-types
type: nest
nested-attributes: dl-linecard-supported-types
# TODO: fill in the attributes in between # TODO: fill in the attributes in between
...@@ -736,12 +829,14 @@ attribute-sets: ...@@ -736,12 +829,14 @@ attribute-sets:
name: reload-stats name: reload-stats
- -
name: remote-reload-stats name: remote-reload-stats
- -
name: dl-reload-stats name: dl-reload-stats
subset-of: devlink subset-of: devlink
attributes: attributes:
- -
name: reload-action-info name: reload-action-info
- -
name: dl-reload-act-info name: dl-reload-act-info
subset-of: devlink subset-of: devlink
...@@ -750,12 +845,14 @@ attribute-sets: ...@@ -750,12 +845,14 @@ attribute-sets:
name: reload-action name: reload-action
- -
name: reload-action-stats name: reload-action-stats
- -
name: dl-reload-act-stats name: dl-reload-act-stats
subset-of: devlink subset-of: devlink
attributes: attributes:
- -
name: reload-stats-entry name: reload-stats-entry
- -
name: dl-reload-stats-entry name: dl-reload-stats-entry
subset-of: devlink subset-of: devlink
...@@ -764,6 +861,7 @@ attribute-sets: ...@@ -764,6 +861,7 @@ attribute-sets:
name: reload-stats-limit name: reload-stats-limit
- -
name: reload-stats-value name: reload-stats-value
- -
name: dl-info-version name: dl-info-version
subset-of: devlink subset-of: devlink
...@@ -772,6 +870,7 @@ attribute-sets: ...@@ -772,6 +870,7 @@ attribute-sets:
name: info-version-name name: info-version-name
- -
name: info-version-value name: info-version-value
- -
name: dl-port-function name: dl-port-function
name-prefix: devlink-port-fn-attr- name-prefix: devlink-port-fn-attr-
...@@ -1005,6 +1104,49 @@ attribute-sets: ...@@ -1005,6 +1104,49 @@ attribute-sets:
- -
name: resource name: resource
-
name: dl-param
subset-of: devlink
attributes:
-
name: param-name
-
name: param-generic
-
name: param-type
# TODO: fill in the attribute param-value-list
-
name: dl-region-snapshots
subset-of: devlink
attributes:
-
name: region-snapshot
-
name: dl-region-snapshot
subset-of: devlink
attributes:
-
name: region-snapshot-id
-
name: dl-region-chunks
subset-of: devlink
attributes:
-
name: region-chunk
-
name: dl-region-chunk
subset-of: devlink
attributes:
-
name: region-chunk-data
-
name: region-chunk-addr
- -
name: dl-fmsg name: dl-fmsg
subset-of: devlink subset-of: devlink
...@@ -1020,6 +1162,62 @@ attribute-sets: ...@@ -1020,6 +1162,62 @@ attribute-sets:
- -
name: fmsg-obj-name name: fmsg-obj-name
-
name: dl-health-reporter
subset-of: devlink
attributes:
-
name: health-reporter-name
-
name: health-reporter-state
-
name: health-reporter-err-count
-
name: health-reporter-recover-count
-
name: health-reporter-graceful-period
-
name: health-reporter-auto-recover
-
name: health-reporter-dump-ts
-
name: health-reporter-dump-ts-ns
-
name: health-reporter-auto-dump
-
name: dl-attr-stats
name-prefix: devlink-attr-
attributes:
- name: stats-rx-packets
type: u64
value: 0
-
name: stats-rx-bytes
type: u64
-
name: stats-rx-dropped
type: u64
-
name: dl-trap-metadata
name-prefix: devlink-attr-
attributes:
-
name: trap-metadata-type-in-port
type: flag
value: 0
-
name: trap-metadata-type-fa-cookie
type: flag
-
name: dl-linecard-supported-types
subset-of: devlink
attributes:
-
name: linecard-type
- -
name: dl-selftest-id name: dl-selftest-id
name-prefix: devlink-attr-selftest-id- name-prefix: devlink-attr-selftest-id-
...@@ -1077,6 +1275,7 @@ operations: ...@@ -1077,6 +1275,7 @@ operations:
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
- -
name: port-set name: port-set
doc: Set devlink port instances. doc: Set devlink port instances.
......
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