svn commit: r300010 - head/sys/dev/sfxge/common

Andrew Rybchenko arybchik at FreeBSD.org
Tue May 17 06:27:21 UTC 2016


Author: arybchik
Date: Tue May 17 06:27:19 2016
New Revision: 300010
URL: https://svnweb.freebsd.org/changeset/base/300010

Log:
  sfxge(4): restore clearing of MCDI new epoch flag in common code
  
  Submitted by:   Andy Moreton <amoreton at solarflare.com>
  Sponsored by:   Solarflare Communications, Inc.
  MFC after:      1 week
  Differential Revision:  https://reviews.freebsd.org/D6390

Modified:
  head/sys/dev/sfxge/common/efx_mcdi.c

Modified: head/sys/dev/sfxge/common/efx_mcdi.c
==============================================================================
--- head/sys/dev/sfxge/common/efx_mcdi.c	Tue May 17 06:26:02 2016	(r300009)
+++ head/sys/dev/sfxge/common/efx_mcdi.c	Tue May 17 06:27:19 2016	(r300010)
@@ -535,6 +535,9 @@ efx_mcdi_request_poll(
 	/* Request complete */
 	emip->emi_pending_req = NULL;
 
+	/* Ensure stale MCDI requests fail after an MC reboot. */
+	emip->emi_new_epoch = B_FALSE;
+
 	EFSYS_UNLOCK(enp->en_eslp, state);
 
 	if ((rc = emrp->emr_rc) != 0)


More information about the svn-src-head mailing list