mbox series

[ethtool-next,v2,0/2] Add support for new features in C33 PSE

Message ID 20241007-feature_poe_power_cap-v2-0-cbd1aa1064df@bootlin.com (mailing list archive)
Headers show
Series Add support for new features in C33 PSE | expand

Message

Kory Maincent Oct. 7, 2024, 12:18 p.m. UTC
From: Kory Maincent (Dent Project) <kory.maincent@bootlin.com>

This series adds support for several new features to the C33 PSE commands:
- Get the Class negotiated between the Powered Device and the PSE
- Get Extended state and substate
- Get the Actual power
- Configure the power limit
- Get the Power limit ranges available

It also updates the manual accordingly.

Example:
$ ethtool --set-pse eth1 c33-pse-avail-pw-limit 18000
$ ethtool --show-pse eth1
PSE attributes for eth1:
Clause 33 PSE Admin State: enabled
Clause 33 PSE Power Detection Status: disabled
Clause 33 PSE Extended State: Group of mr_mps_valid states
Clause 33 PSE Extended Substate: Port is not connected
Clause 33 PSE Available Power Limit: 18000
Clause 33 PSE Power Limit Ranges:
        range:
                min 15000
                max 18100
        range:
                min 30000
                max 38000
        range:
                min 60000
                max 65000
        range:
                min 90000
                max 97500

This series requisites the c33 PSE documentation support patch sent
mainline:
https://lore.kernel.org/r/20240911-fix_missing_doc-v2-1-e2eade6886b9@bootlin.com

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
---
Changes in v2:
- Add missing c33-pse-avail-pw-limit help usage.
- Remove patch 2 which gets merged.
- Link to v1: https://lore.kernel.org/r/20240912-feature_poe_power_cap-v1-0-499e3dd996d7@bootlin.com

---
Kory Maincent (2):
      ethtool: pse-pd: Expand C33 PSE with several new features
      ethtool.8: Add documentation for new C33 PSE features

 ethtool.8.in     |  36 ++++++++
 ethtool.c        |   1 +
 netlink/pse-pd.c | 275 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 312 insertions(+)
---
base-commit: 96aad731275fb4e48e01da697882241e6a0cc198
change-id: 20240709-feature_poe_power_cap-56bd976dd237

Best regards,

Comments

patchwork-bot+netdevbpf@kernel.org Oct. 9, 2024, 9:30 a.m. UTC | #1
Hello:

This series was applied to ethtool/ethtool.git (master)
by Michal Kubecek <mkubecek@suse.cz>:

On Mon, 07 Oct 2024 14:18:48 +0200 you wrote:
> From: Kory Maincent (Dent Project) <kory.maincent@bootlin.com>
> 
> This series adds support for several new features to the C33 PSE commands:
> - Get the Class negotiated between the Powered Device and the PSE
> - Get Extended state and substate
> - Get the Actual power
> - Configure the power limit
> - Get the Power limit ranges available
> 
> [...]

Here is the summary with links:
  - [ethtool-next,v2,1/2] ethtool: pse-pd: Expand C33 PSE with several new features
    https://git.kernel.org/pub/scm/network/ethtool/ethtool.git/commit/?id=2d451b165afa
  - [ethtool-next,v2,2/2] ethtool.8: Add documentation for new C33 PSE features
    https://git.kernel.org/pub/scm/network/ethtool/ethtool.git/commit/?id=f64d352479fd

You are awesome, thank you!