]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use iflib_if_init_locked() during media change instead of iflib_init_locked().
authorAllan Jude <allanjude@FreeBSD.org>
Sun, 14 Feb 2021 18:39:09 +0000 (18:39 +0000)
committerAllan Jude <allanjude@FreeBSD.org>
Tue, 16 Feb 2021 19:02:00 +0000 (19:02 +0000)
commit922cf8ac43adc9983f9a9e05cfd838306c1ef483
treea47be32a1659347823978882254d6a823c99603f
parent97527e9c4fd37140da3129bc12003172edbf7a23
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
sys/net/iflib.c