Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jul 2015 04:50:48 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r286107 - head/sys/dev/cxgbe
Message-ID:  <201507310450.t6V4omTo020293@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507310450.t6V4omTo020293>