]> 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>
Thu, 25 Feb 2021 20:41:10 +0000 (20:41 +0000)
commit1eb60112b22ea0d61f0d1ba4ac0cca56a0c034c8
tree4f5a922fc8b6d728ecffe4c1b7f0c6bc826287a2
parentd6cb4c5669da4f5a904db15963766930ee92af6d
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
Sponsored by: Juniper Networks, Inc., Klara, Inc.
Approved by: re (gjb)

(cherry picked from commit 922cf8ac43adc9983f9a9e05cfd838306c1ef483)
sys/net/iflib.c