Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Feb 2019 03:31:38 +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: r343889 - head/sys/dev/cxgbe
Message-ID:  <201902080331.x183VcNM067028@repo.freebsd.org>

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



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