Use iflib_if_init_locked() during resume instead of iflib_init_locked().
iflib_init_locked() assumes that iflib_stop() has been called, however, it is not called for suspend. iflib_if_init_locked() calls stop then init, so fixes the problem. This was causing errors after a resume from suspend. PR: 224059 Reported by: zeising MFC after: 1 week Sponsored by: Limelight Networks
This commit is contained in:
parent
9cc36b3dab
commit
cd28ea929a
@ -4894,7 +4894,7 @@ iflib_device_resume(device_t dev)
|
||||
|
||||
CTX_LOCK(ctx);
|
||||
IFDI_RESUME(ctx);
|
||||
iflib_init_locked(ctx);
|
||||
iflib_if_init_locked(ctx);
|
||||
CTX_UNLOCK(ctx);
|
||||
for (int i = 0; i < NTXQSETS(ctx); i++, txq++)
|
||||
iflib_txq_check_drain(txq, IFLIB_RESTART_BUDGET);
|
||||
|
Loading…
x
Reference in New Issue
Block a user