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
Unknown Object (File)
Mon, Jul 20, 5:33 AM
Unknown Object (File)
Sun, Jul 19, 9:21 PM
Unknown Object (File)
Wed, Jul 15, 10:37 AM
Unknown Object (File)
Wed, Jul 15, 6:53 AM
Unknown Object (File)
Wed, Jul 15, 6:53 AM
Unknown Object (File)
Sat, Jul 11, 7:43 PM
Unknown Object (File)
Wed, Jul 8, 6:09 PM
Unknown Object (File)
Tue, Jul 7, 2:02 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 68452
Build 65335: arc lint + arc unit