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
F136008048: D28667.id83884.diff
Sat, Nov 15, 1:05 AM
Unknown Object (File)
Tue, Nov 4, 10:59 AM
Unknown Object (File)
Sun, Nov 2, 7:39 AM
Unknown Object (File)
Sat, Nov 1, 5:55 AM
Unknown Object (File)
Wed, Oct 29, 6:50 AM
Unknown Object (File)
Wed, Oct 29, 6:49 AM
Unknown Object (File)
Wed, Oct 29, 6:37 AM
Unknown Object (File)
Sun, Oct 19, 6:22 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36997
Build 33886: arc lint + arc unit

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.