Page MenuHomeFreeBSD

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

Authored by allanjude on Feb 14 2021, 6:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 22, 1:14 PM
Unknown Object (File)
Fri, Nov 21, 8:44 PM
Unknown Object (File)
Tue, Nov 18, 10:58 PM
Unknown Object (File)
Sat, Nov 15, 1:05 AM
Unknown Object (File)
Nov 4 2025, 10:59 AM
Unknown Object (File)
Nov 2 2025, 7:39 AM
Unknown Object (File)
Nov 1 2025, 5:55 AM
Unknown Object (File)
Oct 29 2025, 6:50 AM
Subscribers

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
rG FreeBSD src repository
Lint
Lint Not Applicable
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.Feb 16 2021, 7:02 PM
This revision was automatically updated to reflect the committed changes.