HomeFreeBSD

Use iflib_if_init_locked() during media change instead of iflib_init_locked().

Description

Use iflib_if_init_locked() during media change instead of iflib_init_locked().

iflib_init_locked() assumes that iflib_stop() has been called, however,
it is not called for media changes.
iflib_if_init_locked() calls stop then init, so fixes the problem.

PR: 253473
MFC after: 3 days
Reviewed by: markj
Sponsored by: Juniper Networks, Inc., Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D28667

Details

Provenance
allanjudeAuthored on Feb 14 2021, 6:39 PM
Reviewer
markj
Differential Revision
D28667: Use iflib_if_init_locked() during media change instead of iflib_init_locked().
Parents
rG97527e9c4fd3: bi_load: only add MODULEP on arches that have it defined
Branches
Unknown
Tags
Unknown