diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2025-07-02 10:44:24 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-07-07 19:02:36 -0700 |
commit | ff1fce1bdd7b96b6e84518c277569dabbfb18c7d (patch) | |
tree | 902c3672828cae6420bf1eb09c6f16eaae76a4ec /net/unix/af_unix.c | |
parent | 8d5d927d963b7db8e8c7cda572541f80a69272b0 (diff) |
net: phylink: restrict SFP interfaces to those that are supported
When configuring an optical SFP interface, restrict the bitmap of SFP
interfaces (pl->sfp_interfaces) to those that are supported by the
host, rather than calculating this in a local variable.
This will allow us to avoid recomputing this in the
phylink_ethtool_ksettings_set() path.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Tested-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/E1uWu0u-005KXc-A4@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions