svn commit: r319390 - in stable/10: share/mk tools/build/options tools/tools/cxgbetool usr.sbin usr.sbin/cxgbetool

Ngie Cooper ngie at FreeBSD.org
Thu Jun 1 07:08:28 UTC 2017


Author: ngie
Date: Thu Jun  1 07:08:26 2017
New Revision: 319390
URL: https://svnweb.freebsd.org/changeset/base/319390

Log:
  MFC r314579,r314785:
  
  r314579 (by np):
  
  Add cxgbetool(8) to the base system.
  
  Move cxgbetool from tools/tools to usr.sbin. Compile and install it on
  platforms where cxgbe(4) is built by default.  Knobs (WITH_CXGBETOOL and
  WITHOUT_CXGBETOOL) have been added so that the user can override the
  default setting.
  
  r314785:
  
  Fix some trivial manlint warnings
  
  Sentences should begin on new lines, per manlint.
  
  Bump .Dd for the change

Added:
  stable/10/tools/build/options/WITHOUT_CXGBETOOL
     - copied unchanged from r314579, head/tools/build/options/WITHOUT_CXGBETOOL
  stable/10/tools/build/options/WITH_CXGBETOOL
     - copied unchanged from r314579, head/tools/build/options/WITH_CXGBETOOL
  stable/10/usr.sbin/cxgbetool/
     - copied from r314579, head/usr.sbin/cxgbetool/
Deleted:
  stable/10/tools/tools/cxgbetool/
Modified:
  stable/10/share/mk/bsd.own.mk
  stable/10/usr.sbin/Makefile
  stable/10/usr.sbin/cxgbetool/cxgbetool.8
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/share/mk/bsd.own.mk
==============================================================================
--- stable/10/share/mk/bsd.own.mk	Thu Jun  1 06:58:43 2017	(r319389)
+++ stable/10/share/mk/bsd.own.mk	Thu Jun  1 07:08:26 2017	(r319390)
@@ -463,6 +463,12 @@ __DEFAULT_NO_OPTIONS+=GNUCXX
 __DEFAULT_YES_OPTIONS+=GNUCXX
 .endif
 .endif
+.if ${__T} == "amd64" || ${__T} == "i386" || \
+    ${__T} == "powerpc64" || ${__T} == "sparc64"
+__DEFAULT_YES_OPTIONS+=CXGBETOOL
+.else
+__DEFAULT_NO_OPTIONS+=CXGBETOOL
+.endif
 # FDT is needed only for arm, mips and powerpc
 .if ${__T:Marm*} || ${__T:Mpowerpc*} || ${__T:Mmips*}
 __DEFAULT_YES_OPTIONS+=FDT

Copied: stable/10/tools/build/options/WITHOUT_CXGBETOOL (from r314579, head/tools/build/options/WITHOUT_CXGBETOOL)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ stable/10/tools/build/options/WITHOUT_CXGBETOOL	Thu Jun  1 07:08:26 2017	(r319390, copy of r314579, head/tools/build/options/WITHOUT_CXGBETOOL)
@@ -0,0 +1,3 @@
+.\" $FreeBSD$
+Set to not build
+.Xr cxgbetool 8

Copied: stable/10/tools/build/options/WITH_CXGBETOOL (from r314579, head/tools/build/options/WITH_CXGBETOOL)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ stable/10/tools/build/options/WITH_CXGBETOOL	Thu Jun  1 07:08:26 2017	(r319390, copy of r314579, head/tools/build/options/WITH_CXGBETOOL)
@@ -0,0 +1,3 @@
+.\" $FreeBSD$
+Set to build
+.Xr cxgbetool 8

Modified: stable/10/usr.sbin/Makefile
==============================================================================
--- stable/10/usr.sbin/Makefile	Thu Jun  1 06:58:43 2017	(r319389)
+++ stable/10/usr.sbin/Makefile	Thu Jun  1 07:08:26 2017	(r319390)
@@ -148,6 +148,10 @@ SUBDIR+=	bsnmpd
 SUBDIR+=	ctm
 .endif
 
+.if ${MK_CXGBETOOL} != "no"
+SUBDIR+=	cxgbetool
+.endif
+
 .if ${MK_FLOPPY} != "no"
 SUBDIR+=	fdcontrol
 SUBDIR+=	fdformat

Modified: stable/10/usr.sbin/cxgbetool/cxgbetool.8
==============================================================================
--- head/usr.sbin/cxgbetool/cxgbetool.8	Fri Mar  3 03:11:58 2017	(r314579)
+++ stable/10/usr.sbin/cxgbetool/cxgbetool.8	Thu Jun  1 07:08:26 2017	(r319390)
@@ -31,7 +31,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd February 1, 2013
+.Dd March 6, 2017
 .Dt CXGBETOOL 8
 .Os
 .Sh NAME
@@ -133,7 +133,8 @@ or
 .Va dev.cxgbe.%d.ofld_rxq.%d.fl.cntxt_id Ns .
 Note that freelists are egress queues too.
 .It Ar flm_cntxt_id
-context id of a freelist manager.  The FLM context id is displayed in the
+context id of a freelist manager.
+The FLM context id is displayed in the
 egress context dump of a freelist as FLMcontextID.
 .El
 .It Cm filter mode Op Ar match-criteria ...
@@ -379,7 +380,8 @@ The card's memory map is available in
 .Va dev.t4nex.%d.misc.meminfo Ns .
 .It Bro Cm reg | reg64 Brc Ar addr Ns Op Ar =val
 .It Cm regdump Op Ar register-block ...
-Display contents of device registers.  One or more
+Display contents of device registers.
+One or more
 .Ar register-block
 can be specified to limit the registers displayed.
 The default is to display registers for all blocks.
@@ -400,7 +402,8 @@ A non-zero value will enable "minmax" mode; a zero val
 .Pp
 NOTE:  Many (most) of the parameters and constraints are adapter-specific
 - for instance the number of channels and classes which are available
-whether various modes are implemented, etc.  Consult the adapter documentation for specific information on any limitations.
+whether various modes are implemented, etc.
+Consult the adapter documentation for specific information on any limitations.
 .El
 .It Cm sched-class params Op Ar param Ar value
 Configure parameters for a scheduling class.
@@ -471,7 +474,8 @@ The weight to be used for a weighted-round-robin sched
 The average packet size will be used to compute scheduler constraints for a rate-limited scheduler class hierarchy.
 .Pp
 NOTE:  Many (most) of the parameters and constraints are adapter-specific - for instance the number of channels and classes which are available,
-whether various modes are implemented, etc.  Consult the adapter documentation for specific information on any limitations.
+whether various modes are implemented, etc.
+Consult the adapter documentation for specific information on any limitations.
 .El
 .It Cm sched-queue Ar port queue class
 Bind the indicated port's NIC TX


More information about the svn-src-stable-10 mailing list