Thread (16 messages) 16 messages, 2 authors, 2024-02-15

Re: [PATCH net-next v7 00/13] Introduce PHY listing and link_topology tracking

From: Maxime Chevallier <maxime.chevallier@bootlin.com>
Date: 2024-02-15 07:19:47
Also in: linux-arm-kernel, lkml

Hi Jakub,

On Wed, 14 Feb 2024 16:59:02 -0800
Jakub Kicinski [off-list ref] wrote:
On Tue, 13 Feb 2024 16:04:17 +0100 Maxime Chevallier wrote:
quoted
This is V7 for the link topology addition, allowing to track all PHYs
that are linked to netdevices.

The main change in V7 is the protection of the main internal API
entrypoints (link_topo_init/cleanup, link_topo_add/del_phy) by
IS_REACHABLE(CONFIG_PHYLIB).

That's restrictive, but it looks difficult to do otherwise while still keep the
data structure opaque and not add dependency clutter with PHYLIB.

As you can tell, I'm unsure about this, so please don't hesitate to
comment on that part :)

The other changes are very minor, the only one is a call to netdev_put
in the .done() netlink callback.

As a remainder, here's what the PHY listings would look like :
 - eth0 has a 88x3310 acting as media converter, and an SFP module with
   an embedded 88e1111 PHY
 - eth2 has a 88e1510 PHY  
Needs a rebase, core has been busy lately:
Arg, I'll send a rebased version, sorry about that

Best regards,

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