From 0a15ee0de7d48927e28691bea80fe91a7c3dc4f1 Mon Sep 17 00:00:00 2001 From: msaitoh Date: Thu, 24 Aug 2017 10:43:42 +0000 Subject: [PATCH] Remove unused counters. --- sys/dev/pci/ixgbe/ixgbe.c | 14 +------------- sys/dev/pci/ixgbe/ixgbe.h | 5 +---- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/sys/dev/pci/ixgbe/ixgbe.c b/sys/dev/pci/ixgbe/ixgbe.c index d06f9bfd26b3..fce1de3fba44 100644 --- a/sys/dev/pci/ixgbe/ixgbe.c +++ b/sys/dev/pci/ixgbe/ixgbe.c @@ -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 *adapter) 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, diff --git a/sys/dev/pci/ixgbe/ixgbe.h b/sys/dev/pci/ixgbe/ixgbe.h index bff952210993..62a1e0d49d93 100644 --- a/sys/dev/pci/ixgbe/ixgbe.h +++ b/sys/dev/pci/ixgbe/ixgbe.h @@ -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;