svn commit: r343099 - stable/11/sys/net
Stephen Hurd
shurd at FreeBSD.org
Wed Jan 16 19:20:15 UTC 2019
Author: shurd
Date: Wed Jan 16 19:20:14 2019
New Revision: 343099
URL: https://svnweb.freebsd.org/changeset/base/343099
Log:
MFC r342855:
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
Sponsored by: Limelight Networks
Modified:
stable/11/sys/net/iflib.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/net/iflib.c
==============================================================================
--- stable/11/sys/net/iflib.c Wed Jan 16 15:19:09 2019 (r343098)
+++ stable/11/sys/net/iflib.c Wed Jan 16 19:20:14 2019 (r343099)
@@ -4540,7 +4540,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);
More information about the svn-src-stable
mailing list