svn commit: r343889 - head/sys/dev/cxgbe

Navdeep Parhar np at FreeBSD.org
Fri Feb 8 03:31:39 UTC 2019


Author: np
Date: Fri Feb  8 03:31:38 2019
New Revision: 343889
URL: https://svnweb.freebsd.org/changeset/base/343889

Log:
  cxgbev(4): Initialize debug_flags from the environment like in the PF driver.

Modified:
  head/sys/dev/cxgbe/t4_vf.c

Modified: head/sys/dev/cxgbe/t4_vf.c
==============================================================================
--- head/sys/dev/cxgbe/t4_vf.c	Fri Feb  8 03:29:17 2019	(r343888)
+++ head/sys/dev/cxgbe/t4_vf.c	Fri Feb  8 03:31:38 2019	(r343889)
@@ -479,6 +479,7 @@ t4vf_attach(device_t dev)
 	sc->params.pci.mps = pci_get_max_payload(dev);
 
 	sc->flags |= IS_VF;
+	TUNABLE_INT_FETCH("hw.cxgbe.dflags", &sc->debug_flags);
 
 	sc->sge_gts_reg = VF_SGE_REG(A_SGE_VF_GTS);
 	sc->sge_kdoorbell_reg = VF_SGE_REG(A_SGE_VF_KDOORBELL);


More information about the svn-src-all mailing list