HomeFreeBSD

bnxt: don't set media status if link is down

Description

bnxt: don't set media status if link is down

When the link is down don't set flags other than IFM_AVALID & IFM_ETHER
This avoids media: Ethernet autoselect (Unknown <full-duplex>) on ifconfig

Reviewed by: zlei, pouria
Approved by: glebius (mentor)
MFC after: 1 week
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D54573

(cherry picked from commit 69de2b4e96794793f04d1b323d354fcde3c480f6)

Details

Provenance
anaelle.cazuc_stormshield.euAuthored on Jan 26 2026, 11:06 PM
pouriaCommitted on Feb 3 2026, 9:31 AM
Reviewer
zlei
Differential Revision
D54573: bnxt: don't set media status if link is down
Parents
rG4fe60704ca37: METALOG: Order keyword entries
Branches
Unknown
Tags
Unknown