svn commit: r223392 - stable/8/sys/dev/nfe

Pyun YongHyeon yongari at FreeBSD.org
Wed Jun 22 00:38:26 UTC 2011


Author: yongari
Date: Wed Jun 22 00:38:25 2011
New Revision: 223392
URL: http://svn.freebsd.org/changeset/base/223392

Log:
  MFC r222542:
    If driver is not running, disable interrupts and do not try to
    process received frames.  Previously it was possible to handle RX
    interrupts even if controller is not fully initialized. This
    resulted in non-working driver after system is up and running.
  
    Reported by:	hselasky
    Tested by:	hselasky

Modified:
  stable/8/sys/dev/nfe/if_nfe.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/dev/nfe/if_nfe.c
==============================================================================
--- stable/8/sys/dev/nfe/if_nfe.c	Wed Jun 22 00:35:42 2011	(r223391)
+++ stable/8/sys/dev/nfe/if_nfe.c	Wed Jun 22 00:38:25 2011	(r223392)
@@ -1889,7 +1889,7 @@ nfe_int_task(void *arg, int pending)
 
 	if ((ifp->if_drv_flags & IFF_DRV_RUNNING) == 0) {
 		NFE_UNLOCK(sc);
-		nfe_enable_intr(sc);
+		nfe_disable_intr(sc);
 		return;
 	}
 


More information about the svn-src-stable-8 mailing list