Module Name:    src
Committed By:   knakahara
Date:           Wed Mar 22 03:32:09 UTC 2017

Modified Files:
        src/share/man/man4: wm.4
        src/sys/dev/pci: files.pci

Log Message:
make kernel config flag WM_EVENT_COUNTERS.

suggested by msaitoh@n.o.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/share/man/man4/wm.4
cvs rdiff -u -r1.386 -r1.387 src/sys/dev/pci/files.pci

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man4/wm.4
diff -u src/share/man/man4/wm.4:1.33 src/share/man/man4/wm.4:1.34
--- src/share/man/man4/wm.4:1.33	Fri Mar  3 11:36:20 2017
+++ src/share/man/man4/wm.4	Wed Mar 22 03:32:09 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: wm.4,v 1.33 2017/03/03 11:36:20 wiz Exp $
+.\"	$NetBSD: wm.4,v 1.34 2017/03/22 03:32:09 knakahara Exp $
 .\"
 .\" Copyright 2002, 2003 Wasabi Systems, Inc.
 .\" All rights reserved.
@@ -33,7 +33,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd March 3, 2017
+.Dd March 22, 2017
 .Dt WM 4
 .Os
 .Sh NAME
@@ -191,6 +191,11 @@ The value range is from zero to
 The default value is 0.
 When you increase this value, both the receive latency and
 the receive throughput will decrease.
+.It Dv WM_EVENT_COUNTERS
+Enable many event counters such as each Tx drop counter and Rx intrrupt
+counter.
+Caution: If this flag is enabled, the number of evcnt entries increase
+very much.
 .El
 .Pp
 Setting

Index: src/sys/dev/pci/files.pci
diff -u src/sys/dev/pci/files.pci:1.386 src/sys/dev/pci/files.pci:1.387
--- src/sys/dev/pci/files.pci:1.386	Fri Mar  3 07:38:52 2017
+++ src/sys/dev/pci/files.pci	Wed Mar 22 03:32:09 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: files.pci,v 1.386 2017/03/03 07:38:52 knakahara Exp $
+#	$NetBSD: files.pci,v 1.387 2017/03/22 03:32:09 knakahara Exp $
 #
 # Config file and device description for machine-independent PCI code.
 # Included by ports that need it.  Requires that the SCSI files be
@@ -690,6 +690,7 @@ file	dev/pci/ixgbe/ixv.c		ixv
 device	wm: ether, ifnet, arp, mii, mii_bitbang
 attach	wm at pci
 file	dev/pci/if_wm.c			wm
+defflag	opt_if_wm.h	WM_EVENT_COUNTERS
 defparam opt_if_wm.h	WM_RX_PROCESS_LIMIT_DEFAULT
 			WM_RX_INTR_PROCESS_LIMIT_DEFAULT
 

Reply via email to