svn commit: r231159 - head/sys/dev/bge

Marius Strobl marius at FreeBSD.org
Tue Feb 7 20:24:53 UTC 2012


Author: marius
Date: Tue Feb  7 20:24:52 2012
New Revision: 231159
URL: http://svn.freebsd.org/changeset/base/231159

Log:
  Call bge_add_sysctls() early and especially before bge_can_use_msi() so
  r230337 actually has a chance of working and doesn't always unconditionally
  disable the use of MSIs.

Modified:
  head/sys/dev/bge/if_bge.c

Modified: head/sys/dev/bge/if_bge.c
==============================================================================
--- head/sys/dev/bge/if_bge.c	Tue Feb  7 19:56:22 2012	(r231158)
+++ head/sys/dev/bge/if_bge.c	Tue Feb  7 20:24:52 2012	(r231159)
@@ -2786,6 +2786,8 @@ bge_attach(device_t dev)
 	sc = device_get_softc(dev);
 	sc->bge_dev = dev;
 
+	bge_add_sysctls(sc);
+
 	TASK_INIT(&sc->bge_intr_task, 0, bge_intr_task, sc);
 
 	/*
@@ -3198,8 +3200,6 @@ bge_attach(device_t dev)
 		goto fail;
 	}
 
-	bge_add_sysctls(sc);
-
 	/* Set default tuneable values. */
 	sc->bge_stat_ticks = BGE_TICKS_PER_SEC;
 	sc->bge_rx_coal_ticks = 150;


More information about the svn-src-all mailing list