HomeFreeBSD

qlnx: fix panic at startup

Description

qlnx: fix panic at startup

While attaching the qlnx driver we can end up trying to call ifmedia functions
before those are set up (through ether_ifattach() -> rtnl_handle_ifattach()
-> dump_iface() -> get_operstate_ether() -> ifmedia_ioctl()). Postpone the
ether_ifattach() until after the ifmedia setup.

Reviewed by: markj,zlei
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D50819

(cherry picked from commit 4f7473d18a62077a218ac00817bae09a95b8cbcb)

Details

Provenance
kpAuthored on Jun 12 2025, 4:53 PM
zleiCommitted on Jul 20 2025, 2:07 PM
Reviewer
markj
Differential Revision
D50819: qlnx: fix panic at startup
Parents
rG000755e790df: bluetooth-config: Fix command line parsing
Branches
Unknown
Tags
Unknown