Re: [PATCH 2/8] net: ethtool: pse-pd: Expand C33 PSE status with class, power and status message

From: Kory Maincent
Date: Thu May 30 2024 - 08:58:41 EST


On Thu, 30 May 2024 11:32:23 +0100
Donald Hunter <donald.hunter@xxxxxxxxx> wrote:

> Kory Maincent <kory.maincent@xxxxxxxxxxx> writes:
>
> > From: "Kory Maincent (Dent Project)" <kory.maincent@xxxxxxxxxxx>
> >
> > This update expands the status information provided by ethtool for PSE c33.
> > It includes details such as the detected class, current power delivered,
> > and a detailed status message.

> >
> > /**
> > diff --git a/include/uapi/linux/ethtool_netlink.h
> > b/include/uapi/linux/ethtool_netlink.h index b49b804b9495..c3f288b737e6
> > 100644 --- a/include/uapi/linux/ethtool_netlink.h
> > +++ b/include/uapi/linux/ethtool_netlink.h
> > @@ -915,6 +915,9 @@ enum {
> > ETHTOOL_A_C33_PSE_ADMIN_STATE, /* u32 */
> > ETHTOOL_A_C33_PSE_ADMIN_CONTROL, /* u32 */
> > ETHTOOL_A_C33_PSE_PW_D_STATUS, /* u32 */
> > + ETHTOOL_A_C33_PSE_PW_STATUS_MSG, /* binary */
>
> It looks like the type is 'string' ?

Yes, you are totally right, thanks!

--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com