Page MenuHomeFreeBSD

bnxt: Add led(4) identification support
ClosedPublic

Authored by kbowling on Aug 12 2026, 8:16 PM.
Tags
None
Referenced Files
F171724615: D58810.diff
Sun, Sep 13, 1:23 AM
F171724483: D58810.diff
Sun, Sep 13, 1:22 AM
Unknown Object (File)
Thu, Sep 10, 8:54 AM
Unknown Object (File)
Wed, Sep 9, 12:35 AM
Unknown Object (File)
Sat, Sep 5, 8:12 AM
Unknown Object (File)
Sat, Sep 5, 4:21 AM
Unknown Object (File)
Wed, Sep 2, 6:43 PM
Unknown Object (File)
Wed, Sep 2, 12:20 PM
Subscribers

Details

Summary
Query the firmware for the LEDs on each physical port and expose
/dev/led/bnxt* only when alternate blinking is supported.  Configure
every LED in the advertised group for identification and restore its
default firmware state before a function reset.

This is a structural port of DPDK bnxt HWRM identification path,
confirmed against Linux where old hwrm (0x10601) was observed.
Test Plan

I would have to go dig through my tubs-o-NICs at my lab to find suitable HW so this has not been witnessed for sensible LED function.

echo 1 > /dev/led/bnxt0
and sight check is reasonable. Could monitor the registers also.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped