mirror of
https://github.com/torvalds/linux.git
synced 2026-11-18 09:31:12 +01:00
When performing a non-exact phy_caps lookup, we are looking for a
supported mode that matches as closely as possible the passed speed/duplex.
Blamed patch broke that logic by returning a match too early in case
the caller asks for half-duplex, as a full-duplex linkmode may match
first, and returned as a non-exact match without even trying to mach on
half-duplex modes.
Reported-by: Jijie Shao <shaojijie@huawei.com>
Closes: https://lore.kernel.org/netdev/20250603102500.4ec743cf@fedora/T/#m22ed60ca635c67dc7d9cbb47e8995b2beb5c1576
Tested-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Larysa Zaremba <larysa.zaremba@intel.com>
Fixes:
|
||
|---|---|---|
| .. | ||
| aquantia | ||
| mediatek | ||
| mscc | ||
| qcom | ||
| realtek | ||
| adin.c | ||
| adin1100.c | ||
| air_en8811h.c | ||
| amd.c | ||
| as21xxx.c | ||
| ax88796b_rust.rs | ||
| ax88796b.c | ||
| bcm-cygnus.c | ||
| bcm-phy-lib.c | ||
| bcm-phy-lib.h | ||
| bcm-phy-ptp.c | ||
| bcm7xxx.c | ||
| bcm63xx.c | ||
| bcm87xx.c | ||
| bcm54140.c | ||
| bcm84881.c | ||
| broadcom.c | ||
| cicada.c | ||
| cortina.c | ||
| davicom.c | ||
| dp83tc811.c | ||
| dp83td510.c | ||
| dp83tg720.c | ||
| dp83640_reg.h | ||
| dp83640.c | ||
| dp83822.c | ||
| dp83848.c | ||
| dp83867.c | ||
| dp83869.c | ||
| et1011c.c | ||
| fixed_phy.c | ||
| icplus.c | ||
| intel-xway.c | ||
| Kconfig | ||
| linkmode.c | ||
| lxt.c | ||
| Makefile | ||
| marvell-88q2xxx.c | ||
| marvell-88x2222.c | ||
| marvell.c | ||
| marvell10g.c | ||
| mdio_bus_provider.c | ||
| mdio_bus.c | ||
| mdio_device.c | ||
| mdio_devres.c | ||
| mdio-boardinfo.c | ||
| mdio-boardinfo.h | ||
| mdio-open-alliance.h | ||
| meson-gxl.c | ||
| micrel.c | ||
| microchip_rds_ptp.c | ||
| microchip_rds_ptp.h | ||
| microchip_t1.c | ||
| microchip_t1s.c | ||
| microchip.c | ||
| mii_timestamper.c | ||
| motorcomm.c | ||
| mxl-86110.c | ||
| mxl-gpy.c | ||
| national.c | ||
| ncn26000.c | ||
| nxp-c45-tja11xx-macsec.c | ||
| nxp-c45-tja11xx.c | ||
| nxp-c45-tja11xx.h | ||
| nxp-cbtx.c | ||
| nxp-tja11xx.c | ||
| open_alliance_helpers.c | ||
| open_alliance_helpers.h | ||
| phy_caps.c | ||
| phy_device.c | ||
| phy_led_triggers.c | ||
| phy_link_topology.c | ||
| phy_package.c | ||
| phy-c45.c | ||
| phy-caps.h | ||
| phy-core.c | ||
| phy.c | ||
| phylib-internal.h | ||
| phylib.h | ||
| phylink.c | ||
| qsemi.c | ||
| qt2025.rs | ||
| rockchip.c | ||
| sfp-bus.c | ||
| sfp.c | ||
| sfp.h | ||
| smsc.c | ||
| spi_ks8995.c | ||
| ste10Xp.c | ||
| stubs.c | ||
| swphy.c | ||
| swphy.h | ||
| teranetics.c | ||
| uPD60620.c | ||
| vitesse.c | ||
| xilinx_gmii2rgmii.c | ||