HomeFreeBSD

Use iflib_if_init_locked() during media change instead of iflib_init_locked().

Description

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)

Details

Provenance
allanjudeAuthored on Feb 14 2021, 6:39 PM
Parents
rGd6cb4c5669da: cxgb(4): Rework my commit 9dc7c250.
Branches
Unknown
Tags
Unknown