HomeFreeBSD

if_bnxt: Fix media speed update issue in "ifconfig -m" during PHY hot plug

Description

if_bnxt: Fix media speed update issue in "ifconfig -m" during PHY hot plug

Currently, if a media type (e.g., DAC) is hot-plugged out and another type
(e.g., optical cable) is hot-plugged in, the new speed is not reflected in
ifconfig. This occurs when the driver fails to update speeds with unchanged
tx and rx flow control.

To fix, a phy_type check ensures update of phy speeds upon detecting the new
phy.

Reviewed by: imp
Approved by: imp
Differential revision: https://reviews.freebsd.org/D42951

(cherry picked from commit 7cbffbfcd9a5185be61bec65790674159bb7c0a8)

Details

Provenance
chandrakanth.patil_broadcom.comAuthored on Mar 6 2024, 1:13 PM
impCommitted on Jun 3 2024, 7:23 PM
Reviewer
imp
Differential Revision
D42951: if_bnxt: Fix media speed update issue in "ifconfig -m" during PHY hot plug
Parents
rG4083c62d6993: if_bnxt: Correcting the firmware package version parsing logic
Branches
Unknown
Tags
Unknown