Remove unused counters.

This commit is contained in:
msaitoh 2017-08-24 10:43:42 +00:00
parent 9f2931ceb6
commit 0a15ee0de7
2 changed files with 2 additions and 17 deletions

View File

@ -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,

View File

@ -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;