aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorStephen Hurd <shurd@FreeBSD.org>2019-01-07 23:46:54 +0000
committerStephen Hurd <shurd@FreeBSD.org>2019-01-07 23:46:54 +0000
commitcd28ea929a719e883a9be2187a676a917333f740 (patch)
treeeb7e3af50a9956097352c5d06881ca924f2fc975 /sys
parent9cc36b3dab53f230a6d248b63837793afc5bde3f (diff)
downloadsrc-cd28ea929a719e883a9be2187a676a917333f740.tar.gz
src-cd28ea929a719e883a9be2187a676a917333f740.zip
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
Notes
Notes: svn path=/head/; revision=342855
Diffstat (limited to 'sys')
-rw-r--r--sys/net/iflib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/iflib.c b/sys/net/iflib.c
index 6f6c0cfcf552..e91b692210bd 100644
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -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);