Re: [PATCH net-next 10/13] net: phy: phy_link_topology: Add a helper to retrieve ports

Romain Gantois
2026-01-29T08:58:45Z

[-- Attachment #1: Type: text/plain, Size: 430 bytes --]

On Tuesday, 27 January 2026 14:41:58 CET Maxime Chevallier wrote:
> In order to allow netlink access to phy_ports, let's add a helper to
> retrieve them. When handling a port coming from phy_link_topology, the
> caller must hold rtnl until it's done with it.

Why not use rtnl-specific lockdep annotations to make this more explicit?

Thanks,

--
Romain Gantois, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]