Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/ixgbe Remove unused counters.



details:   https://anonhg.NetBSD.org/src/rev/838c7ba682c8
branches:  trunk
changeset: 826256:838c7ba682c8
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Aug 24 10:43:42 2017 +0000

description:
Remove unused counters.

diffstat:

 sys/dev/pci/ixgbe/ixgbe.c |  14 +-------------
 sys/dev/pci/ixgbe/ixgbe.h |   5 +----
 2 files changed, 2 insertions(+), 17 deletions(-)

diffs (60 lines):

diff -r f183c1d66e11 -r 838c7ba682c8 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Thu Aug 24 01:43:42 2017 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Thu Aug 24 10:43:42 2017 +0000
@@ -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 @@
        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 -r f183c1d66e11 -r 838c7ba682c8 sys/dev/pci/ixgbe/ixgbe.h
--- a/sys/dev/pci/ixgbe/ixgbe.h Thu Aug 24 01:43:42 2017 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.h Thu Aug 24 10:43:42 2017 +0000
@@ -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 @@
        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 @@
 
        /* 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;



Home | Main Index | Thread Index | Old Index