Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Sep 2016 18:05:37 +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: r305704 - head/sys/dev/cxgbe
Message-ID:  <201609111805.u8BI5bso004136@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Sun Sep 11 18:05:37 2016
New Revision: 305704
URL: https://svnweb.freebsd.org/changeset/base/305704

Log:
  cxgbe(4): Rename the debug_flags driver tunable/sysctl to dflags.
  Tunables that end with _flags are special.
  
  Sponsored by:	Chelsio Communications

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

Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c	Sun Sep 11 17:57:53 2016	(r305703)
+++ head/sys/dev/cxgbe/t4_main.c	Sun Sep 11 18:05:37 2016	(r305704)
@@ -675,7 +675,7 @@ t4_attach(device_t dev)
 
 	sc = device_get_softc(dev);
 	sc->dev = dev;
-	TUNABLE_INT_FETCH("hw.cxgbe.debug_flags", &sc->debug_flags);
+	TUNABLE_INT_FETCH("hw.cxgbe.dflags", &sc->debug_flags);
 
 	if ((pci_get_device(dev) & 0xff00) == 0x5400)
 		t5_attribute_workaround(dev);
@@ -4642,7 +4642,7 @@ t4_sysctls(struct adapter *sc)
 	SYSCTL_ADD_INT(ctx, children, OID_AUTO, "lro_timeout", CTLFLAG_RW,
 	    &sc->lro_timeout, 0, "lro inactive-flush timeout (in us)");
 
-	SYSCTL_ADD_INT(ctx, children, OID_AUTO, "debug_flags", CTLFLAG_RW,
+	SYSCTL_ADD_INT(ctx, children, OID_AUTO, "dflags", CTLFLAG_RW,
 	    &sc->debug_flags, 0, "flags to enable runtime debugging");
 
 	SYSCTL_ADD_STRING(ctx, children, OID_AUTO, "tp_version",



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