Re: [PATCH net-next v14 09/10] net: ethtool: Introduce ethtool command to list ports

From: Maxime Chevallier

Date: Wed Jul 22 2026 - 06:07:51 EST


Hi,

On 7/20/26 19:48, Maxime Chevallier wrote:
> Expose the phy_port information to userspace, so that we can know how
> many ports are available on a given interface, as well as their
> capabilities. For MDI ports, we report the list of supported linkmodes
> based on what the PHY that drives this port says.
> For MII ports, i.e. empty SFP cages, we report the MII linkmodes that we
> can output on this port.

Sashiko points the rtnl assert will fail on ops-locked netdevs, that's
likely the case as I haven't tested on such a device.

I'll update for next round,

Maxime