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)
Mon, Apr 20, 6:18 PM
Unknown Object (File)
Sun, Apr 19, 6:14 PM
Unknown Object (File)
Mar 9 2026, 1:10 AM
Unknown Object (File)
Mar 8 2026, 9:45 PM
Unknown Object (File)
Mar 2 2026, 10:00 AM
Unknown Object (File)
Mar 1 2026, 1:16 PM
Unknown Object (File)
Feb 24 2026, 12:30 PM
Unknown Object (File)
Feb 24 2026, 12:30 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