svn commit: r286107 - head/sys/dev/cxgbe
Navdeep Parhar
np at FreeBSD.org
Fri Jul 31 04:50:49 UTC 2015
Author: np
Date: Fri Jul 31 04:50:47 2015
New Revision: 286107
URL: https://svnweb.freebsd.org/changeset/base/286107
Log:
cxgbe(4): initialize debug_flags from the kernel environment.
MFC after: 3 days
Modified:
head/sys/dev/cxgbe/t4_main.c
Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c Fri Jul 31 04:12:51 2015 (r286106)
+++ head/sys/dev/cxgbe/t4_main.c Fri Jul 31 04:50:47 2015 (r286107)
@@ -585,9 +585,7 @@ t4_attach(device_t dev)
sc = device_get_softc(dev);
sc->dev = dev;
-#ifdef INVARIANTS
- sc->debug_flags = DF_DUMP_MBOX;
-#endif
+ TUNABLE_INT_FETCH("hw.cxgbe.debug_flags", &sc->debug_flags);
pci_enable_busmaster(dev);
if (pci_find_cap(dev, PCIY_EXPRESS, &i) == 0) {
More information about the svn-src-head
mailing list