From owner-freebsd-bugs Wed Jul 7 3:20: 4 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 6B63514C8D for ; Wed, 7 Jul 1999 03:20:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA13817; Wed, 7 Jul 1999 03:20:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Wed, 7 Jul 1999 03:20:03 -0700 (PDT) Message-Id: <199907071020.DAA13817@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: David Greenman Subject: Re: kern/12543: [PATCH] cumulative error stats for fxp(4) Reply-To: David Greenman Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/12543; it has been noted by GNATS. From: David Greenman To: Craig Leres Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: kern/12543: [PATCH] cumulative error stats for fxp(4) Date: Wed, 07 Jul 1999 03:10:19 -0700 >> Hello, Craig. I actually had counters like that in an early version of the >> driver but decided to remove them for performance reasons. I wonder if these >> should be hidden behind a compile time option? > >That would be fine with me. > >It would be nice if there was some way to tell at run time that the >stats were available so that a C program or gdb script could tell if >the stats are available. Perhaps it would also be better if the stats were stored as a ISO 8802.3 MIB and made available via sysctl like what is done inside the if_ed driver. The struct for that looks like this: struct ifmib_iso_8802_3 { u_int32_t dot3StatsAlignmentErrors; u_int32_t dot3StatsFCSErrors; u_int32_t dot3StatsSingleCollisionFrames; u_int32_t dot3StatsMultipleCollisionFrames; u_int32_t dot3StatsSQETestErrors; u_int32_t dot3StatsDeferredTransmissions; u_int32_t dot3StatsLateCollisions; u_int32_t dot3StatsExcessiveCollisions; u_int32_t dot3StatsInternalMacTransmitErrors; u_int32_t dot3StatsCarrierSenseErrors; u_int32_t dot3StatsFrameTooLongs; u_int32_t dot3StatsInternalMacReceiveErrors; u_int32_t dot3StatsEtherChipSet; /* Matt Thomas wants this one, not included in RFC 1650: */ u_int32_t dot3StatsMissedFrames; u_int32_t dot3StatsCollFrequencies[16]; /* NB: index origin */ u_int32_t dot3Compliance; #define DOT3COMPLIANCE_STATS 1 #define DOT3COMPLIANCE_COLLS 2 }; ...Garrett may be able to add more to this thought since he was the one who implemented the above. -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project - http://www.freebsd.org Creator of high-performance Internet servers - http://www.terasolutions.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message