Page MenuHomeFreeBSD

ice(4): Fix link speed after changing cable type
ClosedPublic

Authored by kgalazka on Nov 6 2025, 9:22 AM.
Tags
None
Referenced Files
F175161798: D53611.id179643.diff
Thu, Oct 8, 6:43 PM
Unknown Object (File)
Thu, Oct 1, 2:16 PM
Unknown Object (File)
Wed, Sep 30, 12:10 PM
Unknown Object (File)
Sun, Sep 20, 5:06 AM
Unknown Object (File)
Sep 5 2026, 6:59 PM
Unknown Object (File)
Sep 1 2026, 11:09 PM
Unknown Object (File)
Aug 25 2026, 3:39 PM
Unknown Object (File)
Aug 21 2026, 2:01 AM

Details

Summary

When interface was connected to a link partner with a cable
type limitting maximum supported speed, e.g. SFP+ cable
in 25G port, driver incorrectly saved a supported speed
as the user configured speed. This prevented interface
from using all supported speeds after switching cable to SFP28.
Link was established at 10G as supported by previously used
SFP+ cable. Don't set user requested speed unless actually
configured by an user, to allow automatic selection of highest
available speed. Only when user sets custom config
using advertise_speed sysctl save it and try
to apply after cable is changed.

Also don't save initial supported speeds if FW supports
reporting default PHY config.

Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com>

Sponsored by: Intel Corporation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable