diff options
| author | Maxime Chevallier <maxime.chevallier@bootlin.com> | 2026-10-16 15:30:56 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-10-21 16:32:03 -0700 |
| commit | b428d67934b5949c397cff7c102c345975dd2eb9 (patch) | |
| tree | 7f7e1c6fc2d96802a88bb87dc20542edbf7a96f5 /tools/lib/python | |
| parent | 279d5c8afcd38bd841832a39bfe1aa4f8518d98e (diff) | |
net: phy: phy_link_topology: Add a helper for opportunistic alloc
The phy_link_topology structure stores information about the PHY-related
components connected to a net_device. It is opportunistically allocated,
when we add the first item to the topology, as this is not relevant for
all kinds of net_devices.
In preparation for the addition of phy_port tracking in the topology,
let's make a dedicated helper for that allocation sequence.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Aleksei Sviridkin <f@lex.la>
Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Tested-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20261016133107.54054-2-maxime.chevallier@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
