Page MenuHomeFreeBSD

bnxt_en: map unsupported PAM4 speeds to nearest ifmedia types for ifconfig -m
Needs ReviewPublic

Authored by chandrakanth.patil_broadcom.com on Aug 21 2025, 4:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 4, 6:47 PM
Unknown Object (File)
May 20 2026, 5:14 AM
Unknown Object (File)
May 14 2026, 10:51 PM
Unknown Object (File)
May 7 2026, 9:50 AM
Unknown Object (File)
Apr 20 2026, 6:18 PM
Unknown Object (File)
Apr 19 2026, 6:14 PM
Unknown Object (File)
Mar 9 2026, 1:10 AM
Unknown Object (File)
Mar 8 2026, 9:45 PM
Subscribers
None

Details

Summary

FreeBSD’s ifmedia API lacks enums for several PAM4 link modes (e.g., 50G-per-lane / PAM4_56 and 100G-per-lane / PAM4_112).
As a result, ifconfig -m displayed incorrect/unknown speeds.

This change reports the closest available ifmedia types for unsupported modes across CR (copper), SR (optical), LR, and
ER media, improving user-visible capabilities without affecting datapath behavior.

Examples:

PAM4_56 400G CR --> use IFM_400G_AUI8 (closest available)
PAM4_112 400G SR --> use IFM_400G_DR4 (closest available)

This is a display/workaround only, once FreeBSD adds native ifmedia constants for these modes, the mappings can be updated
or removed.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped