Re: [PATCH net-next v10 3/9] net: phylink: Register a phy_port for MAC-driven SFP cages

From: Andrew Lunn

Date: Thu May 14 2026 - 09:44:28 EST


On Wed, May 13, 2026 at 03:05:14PM +0200, Maxime Chevallier wrote:
> phy_port tracks the interfaces that a netdevice feeds into. SFP cages are
> such ports, but so far we are only tracking the ones that are driven by
> PHYs acting as media-converters.
>
> Let's populate a phy_port for MAC driver SFP cages, handled by phylink.
>
> This phy_port represents the SFP cage itself, and not the module that
> may be plugged into it. It's therefore not an MDI interface, so only the
> 'interfaces' field is relevant here.
>
> The phy_port is only populated for 'NETDEV' phylink instances, as
> otherwise we don't have any topology to attach the port to.
>
> Signed-off-by: Maxime Chevallier <maxime.chevallier@xxxxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew