diff options
| author | Allan Jude <allanjude@FreeBSD.org> | 2021-02-14 18:39:09 +0000 |
|---|---|---|
| committer | Allan Jude <allanjude@FreeBSD.org> | 2021-02-25 20:41:10 +0000 |
| commit | 1eb60112b22ea0d61f0d1ba4ac0cca56a0c034c8 (patch) | |
| tree | 4f5a922fc8b6d728ecffe4c1b7f0c6bc826287a2 | |
| parent | d6cb4c5669da4f5a904db15963766930ee92af6d (diff) | |
| download | src-1eb60112b22ea0d61f0d1ba4ac0cca56a0c034c8.tar.gz src-1eb60112b22ea0d61f0d1ba4ac0cca56a0c034c8.zip | |
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)
| -rw-r--r-- | sys/net/iflib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/iflib.c b/sys/net/iflib.c index d10c11f865fe..506861b65570 100644 --- a/sys/net/iflib.c +++ b/sys/net/iflib.c @@ -2503,7 +2503,7 @@ iflib_media_change(if_t ifp) CTX_LOCK(ctx); if ((err = IFDI_MEDIA_CHANGE(ctx)) == 0) - iflib_init_locked(ctx); + iflib_if_init_locked(ctx); CTX_UNLOCK(ctx); return (err); } |
