]> git.ipfire.org Git - thirdparty/linux.git/commit
net: phylink: add phylink_sfp_select_interface_speed()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 2 Jul 2025 09:44:34 +0000 (10:44 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Jul 2025 02:02:36 +0000 (19:02 -0700)
commit320164a6e172137bcefea669f0ff6ee3f4c8611e
treea282fc9642d0341d20f386d48cb509cf77bd32da
parentb0fdff22d520bde77f3c7119b6999a08544129b6
net: phylink: add phylink_sfp_select_interface_speed()

Add phylink_sfp_select_interface_speed() which attempts to select the
SFP interface based on the ethtool speed when autoneg is turned off.
This allows users to turn off autoneg for SFPs that support multiple
interface modes, and have an appropriate interface mode selected.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/E1uWu14-005KXo-IO@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phylink.c