Module Name: src Committed By: msaitoh Date: Thu Aug 24 10:43:42 UTC 2017
Modified Files: src/sys/dev/pci/ixgbe: ixgbe.c ixgbe.h Log Message: Remove unused counters. To generate a diff of this commit: cvs rdiff -u -r1.95 -r1.96 src/sys/dev/pci/ixgbe/ixgbe.c cvs rdiff -u -r1.24 -r1.25 src/sys/dev/pci/ixgbe/ixgbe.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/ixgbe/ixgbe.c diff -u src/sys/dev/pci/ixgbe/ixgbe.c:1.95 src/sys/dev/pci/ixgbe/ixgbe.c:1.96 --- src/sys/dev/pci/ixgbe/ixgbe.c:1.95 Mon Jul 3 08:29:58 2017 +++ src/sys/dev/pci/ixgbe/ixgbe.c Thu Aug 24 10:43:42 2017 @@ -59,7 +59,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ /*$FreeBSD: head/sys/dev/ixgbe/if_ix.c 302384 2016-07-07 03:39:18Z sbruno $*/ -/*$NetBSD: ixgbe.c,v 1.95 2017/07/03 08:29:58 msaitoh Exp $*/ +/*$NetBSD: ixgbe.c,v 1.96 2017/08/24 10:43:42 msaitoh Exp $*/ #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -4847,18 +4847,6 @@ ixgbe_add_hw_stats(struct adapter *adapt const char *xname = device_xname(dev); /* Driver Statistics */ -#if 0 - /* These counters are not updated by the software */ - SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "mbuf_header_failed", - CTLFLAG_RD, &adapter->mbuf_header_failed, - "???"); - SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "mbuf_packet_failed", - CTLFLAG_RD, &adapter->mbuf_packet_failed, - "???"); - SYSCTL_ADD_ULONG(ctx, child, OID_AUTO, "no_tx_map_avail", - CTLFLAG_RD, &adapter->no_tx_map_avail, - "???"); -#endif evcnt_attach_dynamic(&adapter->handleq, EVCNT_TYPE_MISC, NULL, xname, "Handled queue in softint"); evcnt_attach_dynamic(&adapter->req, EVCNT_TYPE_MISC, Index: src/sys/dev/pci/ixgbe/ixgbe.h diff -u src/sys/dev/pci/ixgbe/ixgbe.h:1.24 src/sys/dev/pci/ixgbe/ixgbe.h:1.25 --- src/sys/dev/pci/ixgbe/ixgbe.h:1.24 Mon Feb 13 10:13:54 2017 +++ src/sys/dev/pci/ixgbe/ixgbe.h Thu Aug 24 10:43:42 2017 @@ -59,7 +59,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ /*$FreeBSD: head/sys/dev/ixgbe/ixgbe.h 303890 2016-08-09 19:32:06Z dumbbell $*/ -/*$NetBSD: ixgbe.h,v 1.24 2017/02/13 10:13:54 msaitoh Exp $*/ +/*$NetBSD: ixgbe.h,v 1.25 2017/08/24 10:43:42 msaitoh Exp $*/ #ifndef _IXGBE_H_ @@ -400,7 +400,6 @@ struct tx_ring { u32 packets; /* Soft Stats */ struct evcnt tso_tx; - struct evcnt no_tx_map_avail; struct evcnt no_desc_avail; struct evcnt total_packets; struct evcnt pcq_drops; @@ -580,8 +579,6 @@ struct adapter { /* Misc stats maintained by the driver */ struct evcnt mbuf_defrag_failed; - struct evcnt mbuf_header_failed; - struct evcnt mbuf_packet_failed; struct evcnt efbig_tx_dma_setup; struct evcnt efbig2_tx_dma_setup; struct evcnt einval_tx_dma_setup;