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)
Mon, Apr 27, 5:11 PM
Unknown Object (File)
Wed, Apr 15, 2:05 AM
Unknown Object (File)
Mon, Apr 13, 10:05 PM
Unknown Object (File)
Thu, Apr 9, 3:49 PM
Unknown Object (File)
Mar 25 2026, 12:32 AM
Unknown Object (File)
Mar 19 2026, 11:37 PM
Unknown Object (File)
Mar 19 2026, 11:37 PM
Unknown Object (File)
Mar 19 2026, 11:37 PM
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