Skip to content

Commit dac3de1

Browse files
kmaincentkuba-moo
authored andcommitted
netlink: specs: Expand the PSE netlink command with C33 pw-limit attributes
Expand the c33 PSE attributes with power limit to be able to set and get the PSE Power Interface power limit. ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do pse-get --json '{"header":{"dev-name":"eth1"}}' {'c33-pse-actual-pw': 1700, 'c33-pse-admin-state': 3, 'c33-pse-avail-pw-limit': 97500, 'c33-pse-pw-class': 4, 'c33-pse-pw-d-status': 4, 'c33-pse-pw-limit-ranges': [{'max': 18100, 'min': 15000}, {'max': 38000, 'min': 30000}, {'max': 65000, 'min': 60000}, {'max': 97500, 'min': 90000}], 'header': {'dev-index': 5, 'dev-name': 'eth1'}} ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do pse-set --json '{"header":{"dev-name":"eth1"}, "c33-pse-avail-pw-limit":19000}' None Signed-off-by: Kory Maincent <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 30d7b67 commit dac3de1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Documentation/netlink/specs/ethtool.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,15 @@ attribute-sets:
939939
-
940940
name: power-mode
941941
type: u8
942+
-
943+
name: c33-pse-pw-limit
944+
attributes:
945+
-
946+
name: min
947+
type: u32
948+
-
949+
name: max
950+
type: u32
942951
-
943952
name: pse
944953
attributes:
@@ -987,6 +996,16 @@ attribute-sets:
987996
name: c33-pse-ext-substate
988997
type: u32
989998
name-prefix: ethtool-a-
999+
-
1000+
name: c33-pse-avail-pw-limit
1001+
type: u32
1002+
name-prefix: ethtool-a-
1003+
-
1004+
name: c33-pse-pw-limit-ranges
1005+
name-prefix: ethtool-a-
1006+
type: nest
1007+
multi-attr: true
1008+
nested-attributes: c33-pse-pw-limit
9901009
-
9911010
name: rss
9921011
attributes:
@@ -1708,6 +1727,8 @@ operations:
17081727
- c33-pse-actual-pw
17091728
- c33-pse-ext-state
17101729
- c33-pse-ext-substate
1730+
- c33-pse-avail-pw-limit
1731+
- c33-pse-pw-limit-ranges
17111732
dump: *pse-get-op
17121733
-
17131734
name: pse-set
@@ -1721,6 +1742,7 @@ operations:
17211742
- header
17221743
- podl-pse-admin-control
17231744
- c33-pse-admin-control
1745+
- c33-pse-avail-pw-limit
17241746
-
17251747
name: rss-get
17261748
doc: Get RSS params.

0 commit comments

Comments
 (0)