diff options
| author | Maxime Chevallier <[email protected]> | 2025-03-07 17:36:03 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-03-18 08:03:11 +0000 |
| commit | dbcd85b05c5ba520b75dbf51d0b48b5a366b6c68 (patch) | |
| tree | 0c31e9701aac53fc7b6f04c8262d66c8838a2dd5 /drivers/net/phy/phy.c | |
| parent | net: phy: phy_caps: Introduce phy_caps_valid (diff) | |
| download | kernel-dbcd85b05c5ba520b75dbf51d0b48b5a366b6c68.tar.gz kernel-dbcd85b05c5ba520b75dbf51d0b48b5a366b6c68.zip | |
net: phy: phy_caps: Implement link_capabilities lookup by linkmode
In several occasions, phylib needs to lookup a set of matching speed and
duplex against a given linkmode set. Instead of relying on the
phy_settings array and thus iterate over the whole linkmodes list, use
the link_capabilities array to lookup these matches, as we aren't
interested in the actual link setting that matches but rather the speed
and duplex for that setting.
Signed-off-by: Maxime Chevallier <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/net/phy/phy.c')
0 files changed, 0 insertions, 0 deletions
