Re: [PATCH net-next v5 2/7] netlink: specs: Expand the PSE netlink command with C33 new features
From: Paolo Abeni
Date: Tue Jul 02 2024 - 09:19:57 EST
On Fri, 2024-06-28 at 10:31 +0200, Kory Maincent wrote:
> From: Kory Maincent (Dent Project) <kory.maincent@xxxxxxxxxxx>
>
> 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 <kory.maincent@xxxxxxxxxxx>
This does not apply cleanly to net-next due to commit 46fb3ba95b93
("ethtool: Add an interface for flashing transceiver modules'
firmware").
Please rebase and re-submit.
Also it would be great if you could add some documentation to the new
attributes.
Thanks,
Paolo