Page MenuHomeFreeBSD

bnxt_en: report correct link speed to OS
Needs ReviewPublic

Authored by chandrakanth.patil_broadcom.com on Aug 21 2025, 4:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 4, 9:58 PM
Unknown Object (File)
May 19 2026, 2:16 PM
Unknown Object (File)
May 18 2026, 10:37 AM
Unknown Object (File)
May 17 2026, 3:19 AM
Unknown Object (File)
May 17 2026, 3:12 AM
Unknown Object (File)
May 15 2026, 1:43 AM
Unknown Object (File)
May 10 2026, 9:17 AM
Unknown Object (File)
May 10 2026, 9:12 AM
Subscribers
None

Details

Summary

Fix the link speed passed to iflib_link_state_change() when bringing the link up.
The driver was hardcoding IF_Gbps(100), always reporting 100 Gbps regardless of the
actual negotiated rate. Use the firmware-reported link_info->link_speed (in units of 100 Mbps)
and convert with IF_Mbps(link_info->link_speed * 100) so the OS sees the true link speed.

This corrects interface media reporting (e.g., ifconfig, monitoring) without affecting datapath
behavior.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped