Page MenuHomeFreeBSD

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

Authored by allanjude on Sun, Feb 14, 6:46 PM.

Details

Summary

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: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253473
MFC after: 3 days
Sponsored by: Juniper Networks, Inc., Klara, Inc.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Seems right. Other callers of iflib_init_locked() look ok.

This revision was not accepted when it landed; it landed in state Needs Review.Tue, Feb 16, 7:02 PM
This revision was automatically updated to reflect the committed changes.