Re: [PATCH ethtool-next v3 3/3] ethtool: Introduce a command to list PHYs

From: Maxime Chevallier
Date: Thu Sep 05 2024 - 11:43:53 EST


Hi everyone,

On Thu, 5 Sep 2024 12:24:16 +0200
Maxime Chevallier <maxime.chevallier@xxxxxxxxxxx> wrote:

> It is now possible to list all Ethernet PHYs that are present behind a
> given interface, since the following linux commit :
> 63d5eaf35ac3 ("net: ethtool: Introduce a command to list PHYs on an interface")
>
> This command relies on the netlink DUMP command to list them, by allowing to
> pass an interface name/id as a parameter in the DUMP request to only
> list PHYs on one interface.
>
> Therefore, we introduce a new helper function to prepare a interface-filtered
> dump request (the filter can be empty, to perform an unfiltered dump),
> and then uses it to implement PHY enumeration through the --show-phys
> command.
>
> Signed-off-by: Maxime Chevallier <maxime.chevallier@xxxxxxxxxxx>

Damn I just realised the netlink dependency was left-out of the
patchset, I'll fix that in the next revision... sorry for the noise.

Maxime