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)
Thu, May 14, 2:27 PM
Unknown Object (File)
Thu, May 14, 2:27 PM
Unknown Object (File)
Sat, May 9, 5:18 AM
Unknown Object (File)
Wed, May 6, 11:03 AM
Unknown Object (File)
Sat, May 2, 11:41 PM
Unknown Object (File)
Sat, Apr 25, 1:03 PM
Unknown Object (File)
Sat, Apr 25, 12:39 AM
Unknown Object (File)
Mon, Apr 20, 2:32 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.