Skip to content

Commit c814973

Browse files
kmaincentkuba-moo
authored andcommitted
netlink: specs: Expand the PSE netlink command with C33 new features
Expand the c33 PSE attributes with PSE class, extended state information and power consumption. ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do pse-get --json '{"header":{"dev-name":"eth0"}}' {'c33-pse-actual-pw': 1700, 'c33-pse-admin-state': 3, 'c33-pse-pw-class': 4, 'c33-pse-pw-d-status': 4, 'header': {'dev-index': 4, 'dev-name': 'eth0'}} ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do pse-get --json '{"header":{"dev-name":"eth0"}}' {'c33-pse-admin-state': 3, 'c33-pse-ext-state': 'mr-mps-valid', 'c33-pse-ext-substate': 2, 'c33-pse-pw-d-status': 2, 'header': {'dev-index': 4, 'dev-name': 'eth0'}} Signed-off-by: Kory Maincent <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent e462960 commit c814973

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

Documentation/netlink/specs/ethtool.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,21 @@ definitions:
2424
name: module-fw-flash-status
2525
type: enum
2626
entries: [ started, in_progress, completed, error ]
27+
-
28+
name: c33-pse-ext-state
29+
enum-name:
30+
type: enum
31+
name-prefix: ethtool-c33-pse-ext-state-
32+
entries:
33+
- none
34+
- error-condition
35+
- mr-mps-valid
36+
- mr-pse-enable
37+
- option-detect-ted
38+
- option-vport-lim
39+
- ovld-detected
40+
- power-not-available
41+
- short-detected
2742

2843
attribute-sets:
2944
-
@@ -955,6 +970,23 @@ attribute-sets:
955970
name: c33-pse-pw-d-status
956971
type: u32
957972
name-prefix: ethtool-a-
973+
-
974+
name: c33-pse-pw-class
975+
type: u32
976+
name-prefix: ethtool-a-
977+
-
978+
name: c33-pse-actual-pw
979+
type: u32
980+
name-prefix: ethtool-a-
981+
-
982+
name: c33-pse-ext-state
983+
type: u32
984+
name-prefix: ethtool-a-
985+
enum: c33-pse-ext-state
986+
-
987+
name: c33-pse-ext-substate
988+
type: u32
989+
name-prefix: ethtool-a-
958990
-
959991
name: rss
960992
attributes:
@@ -1672,6 +1704,10 @@ operations:
16721704
- c33-pse-admin-state
16731705
- c33-pse-admin-control
16741706
- c33-pse-pw-d-status
1707+
- c33-pse-pw-class
1708+
- c33-pse-actual-pw
1709+
- c33-pse-ext-state
1710+
- c33-pse-ext-substate
16751711
dump: *pse-get-op
16761712
-
16771713
name: pse-set

0 commit comments

Comments
 (0)