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

Details

Provenance
kpAuthored on Jun 12 2025, 4:53 PM
Reviewer
markj
Differential Revision
D50819: qlnx: fix panic at startup
Parents
rGbd8621c6cd8a: kern_time: minor style nits
Branches
Unknown
Tags
Unknown