Thread (28 messages) 28 messages, 4 authors, 11d ago

Re: [PATCH RESEND net-next v17 00/10] net: phy_port: SFP modules representation and phy_port listing

flat view

From: Maxime Chevallier <maxime.chevallier@bootlin.com>
Date: 2026-09-27 12:42:11
Also in: lkml

Hi,

On 9/25/26 00:01, Aleksei Sviridkin wrote:
Hi Maxime,

I ran v17 on a Keenetic KN-1012 (MT7981B + MT7531). Switch port 5
(lan4) goes either to an SFP cage or to an EN8811H copper PHY, and the
bootloader picks one devicetree variant per boot. The series was
backported to OpenWrt's 6.18 kernel together with the phy_port base and
its fixes, with PROVE_LOCKING and DEBUG_ATOMIC_SLEEP enabled.
Thanks for testing :)

[...]
A module port follows the netdev's admin state rather than module
presence. With lan4 down, a module sitting in the cage isn't listed,
because sfp_module_stop() runs phylink_del_sfp_mod_port(). After ifup
it comes back under a new id, so every ifdown/ifup renumbers it. Is
that intended? From userspace, "port 3 upstream 1" isn't stable across
an ifup.
Yes that's intended, we don't really have a choice here. Module ports
should be considered volatile in their id (this is best effort) as they
may disappear / reappear with another module later on.
Tested-by: Aleksei Sviridkin <redacted>
Thanks !

Maxime
Aleksei
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help