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)
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to