summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/mk/bsd.own.mk6
-rw-r--r--tools/build/options/WITHOUT_CXGBETOOL3
-rw-r--r--tools/build/options/WITH_CXGBETOOL3
-rw-r--r--tools/tools/cxgbetool/Makefile9
-rw-r--r--usr.sbin/Makefile4
-rw-r--r--usr.sbin/cxgbetool/Makefile8
-rw-r--r--usr.sbin/cxgbetool/Makefile.depend19
-rw-r--r--usr.sbin/cxgbetool/cxgbetool.8 (renamed from tools/tools/cxgbetool/cxgbetool.8)14
-rw-r--r--usr.sbin/cxgbetool/cxgbetool.c (renamed from tools/tools/cxgbetool/cxgbetool.c)0
-rw-r--r--usr.sbin/cxgbetool/reg_defs_t4.c (renamed from tools/tools/cxgbetool/reg_defs_t4.c)0
-rw-r--r--usr.sbin/cxgbetool/reg_defs_t4vf.c (renamed from tools/tools/cxgbetool/reg_defs_t4vf.c)0
-rw-r--r--usr.sbin/cxgbetool/reg_defs_t5.c (renamed from tools/tools/cxgbetool/reg_defs_t5.c)0
-rw-r--r--usr.sbin/cxgbetool/reg_defs_t6.c (renamed from tools/tools/cxgbetool/reg_defs_t6.c)0
13 files changed, 52 insertions, 14 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk
index 2a745a9..3ccb01a 100644
--- a/share/mk/bsd.own.mk
+++ b/share/mk/bsd.own.mk
@@ -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
diff --git a/tools/build/options/WITHOUT_CXGBETOOL b/tools/build/options/WITHOUT_CXGBETOOL
new file mode 100644
index 0000000..d7aef38
--- /dev/null
+++ b/tools/build/options/WITHOUT_CXGBETOOL
@@ -0,0 +1,3 @@
+.\" $FreeBSD$
+Set to not build
+.Xr cxgbetool 8
diff --git a/tools/build/options/WITH_CXGBETOOL b/tools/build/options/WITH_CXGBETOOL
new file mode 100644
index 0000000..b9c26a0
--- /dev/null
+++ b/tools/build/options/WITH_CXGBETOOL
@@ -0,0 +1,3 @@
+.\" $FreeBSD$
+Set to build
+.Xr cxgbetool 8
diff --git a/tools/tools/cxgbetool/Makefile b/tools/tools/cxgbetool/Makefile
deleted file mode 100644
index 1430a5a..0000000
--- a/tools/tools/cxgbetool/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-# $FreeBSD$
-
-PROG= cxgbetool
-SRCS= cxgbetool.c
-MAN= cxgbetool.8
-CFLAGS+= -I${.CURDIR}/../../../sys/dev/cxgbe -I${.CURDIR}/../../../sys -I.
-BINDIR?= /usr/sbin
-
-.include <bsd.prog.mk>
diff --git a/usr.sbin/Makefile b/usr.sbin/Makefile
index f76bb01..48d7286 100644
--- a/usr.sbin/Makefile
+++ b/usr.sbin/Makefile
@@ -148,6 +148,10 @@ SUBDIR+= bsnmpd
SUBDIR+= ctm
.endif
+.if ${MK_CXGBETOOL} != "no"
+SUBDIR+= cxgbetool
+.endif
+
.if ${MK_FLOPPY} != "no"
SUBDIR+= fdcontrol
SUBDIR+= fdformat
diff --git a/usr.sbin/cxgbetool/Makefile b/usr.sbin/cxgbetool/Makefile
new file mode 100644
index 0000000..f8291af
--- /dev/null
+++ b/usr.sbin/cxgbetool/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+PROG= cxgbetool
+MAN= cxgbetool.8
+CFLAGS+= -I${SRCTOP}/sys/dev/cxgbe -I${SRCTOP}/sys -I.
+WARNS?= 2
+
+.include <bsd.prog.mk>
diff --git a/usr.sbin/cxgbetool/Makefile.depend b/usr.sbin/cxgbetool/Makefile.depend
new file mode 100644
index 0000000..54c1f6f
--- /dev/null
+++ b/usr.sbin/cxgbetool/Makefile.depend
@@ -0,0 +1,19 @@
+# $FreeBSD$
+# Autogenerated - do NOT edit!
+
+DIRDEPS = \
+ gnu/lib/csu \
+ gnu/lib/libgcc \
+ include \
+ include/arpa \
+ include/xlocale \
+ lib/${CSU_DIR} \
+ lib/libc \
+ lib/libcompiler_rt \
+
+
+.include <dirdeps.mk>
+
+.if ${DEP_RELDIR} == ${_DEP_RELDIR}
+# local dependencies - needed for -jN in clean tree
+.endif
diff --git a/tools/tools/cxgbetool/cxgbetool.8 b/usr.sbin/cxgbetool/cxgbetool.8
index bdc4eb7..81affe1 100644
--- a/tools/tools/cxgbetool/cxgbetool.8
+++ b/usr.sbin/cxgbetool/cxgbetool.8
@@ -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 value will disable "minmax" m
.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 scheduling hierarchy.
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
diff --git a/tools/tools/cxgbetool/cxgbetool.c b/usr.sbin/cxgbetool/cxgbetool.c
index 71f07df..71f07df 100644
--- a/tools/tools/cxgbetool/cxgbetool.c
+++ b/usr.sbin/cxgbetool/cxgbetool.c
diff --git a/tools/tools/cxgbetool/reg_defs_t4.c b/usr.sbin/cxgbetool/reg_defs_t4.c
index 5207073..5207073 100644
--- a/tools/tools/cxgbetool/reg_defs_t4.c
+++ b/usr.sbin/cxgbetool/reg_defs_t4.c
diff --git a/tools/tools/cxgbetool/reg_defs_t4vf.c b/usr.sbin/cxgbetool/reg_defs_t4vf.c
index 3490903..3490903 100644
--- a/tools/tools/cxgbetool/reg_defs_t4vf.c
+++ b/usr.sbin/cxgbetool/reg_defs_t4vf.c
diff --git a/tools/tools/cxgbetool/reg_defs_t5.c b/usr.sbin/cxgbetool/reg_defs_t5.c
index ff84f00..ff84f00 100644
--- a/tools/tools/cxgbetool/reg_defs_t5.c
+++ b/usr.sbin/cxgbetool/reg_defs_t5.c
diff --git a/tools/tools/cxgbetool/reg_defs_t6.c b/usr.sbin/cxgbetool/reg_defs_t6.c
index f8a353b..f8a353b 100644
--- a/tools/tools/cxgbetool/reg_defs_t6.c
+++ b/usr.sbin/cxgbetool/reg_defs_t6.c
OpenPOWER on IntegriCloud