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

Details

Provenance
anaelle.cazuc_stormshield.euAuthored on Jan 26 2026, 11:06 PM
pouriaCommitted on Jan 26 2026, 11:21 PM
Reviewer
zlei
Differential Revision
D54573: bnxt: don't set media status if link is down
Parents
rGd1a8f1a62f31: ipfw: don't use the upper half lock to walk dynamic states buckets
Branches
Unknown
Tags
Unknown