Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netlink: specs: Expand the pse netlink command with PoE interface

Add the PoE pse attributes prefix to be able to use PoE interface.

Example usage:
./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do pse-get \
--json '{"header":{"dev-name":"eth0"}}'
{'header': {'dev-index': 4, 'dev-name': 'eth0'},
'c33-pse-admin-state': 3,
'c33-pse-pw-d-status': 4}

./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do pse-set \
--json '{"header":{"dev-name":"eth0"},
"c33-pse-admin-control":3}'

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Link: https://lore.kernel.org/r/20240417-feature_poe-v9-5-242293fd1900@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Kory Maincent (Dent Project) and committed by
Jakub Kicinski
f8586411 57b30d2a

+15
+15
Documentation/netlink/specs/ethtool.yaml
··· 910 910 name: podl-pse-pw-d-status 911 911 type: u32 912 912 name-prefix: ethtool-a- 913 + - 914 + name: c33-pse-admin-state 915 + type: u32 916 + name-prefix: ethtool-a- 917 + - 918 + name: c33-pse-admin-control 919 + type: u32 920 + name-prefix: ethtool-a- 921 + - 922 + name: c33-pse-pw-d-status 923 + type: u32 924 + name-prefix: ethtool-a- 913 925 - 914 926 name: rss 915 927 attributes: ··· 1608 1596 - podl-pse-admin-state 1609 1597 - podl-pse-admin-control 1610 1598 - podl-pse-pw-d-status 1599 + - c33-pse-admin-state 1600 + - c33-pse-admin-control 1601 + - c33-pse-pw-d-status 1611 1602 dump: *pse-get-op 1612 1603 - 1613 1604 name: pse-set