Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jan 2019 18:40:37 +0000 (UTC)
From:      Stephen Hurd <shurd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r343024 - stable/12/sys/net
Message-ID:  <201901141840.x0EIebEE022207@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: shurd
Date: Mon Jan 14 18:40:37 2019
New Revision: 343024
URL: https://svnweb.freebsd.org/changeset/base/343024

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/12/sys/net/iflib.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/net/iflib.c
==============================================================================
--- stable/12/sys/net/iflib.c	Mon Jan 14 15:48:35 2019	(r343023)
+++ stable/12/sys/net/iflib.c	Mon Jan 14 18:40:37 2019	(r343024)
@@ -5118,7 +5118,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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901141840.x0EIebEE022207>