Date: Wed, 7 Jul 1999 03:20:03 -0700 (PDT) From: David Greenman <dg@root.com> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/12543: [PATCH] cumulative error stats for fxp(4) Message-ID: <199907071020.DAA13817@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/12543; it has been noted by GNATS.
From: David Greenman <dg@root.com>
To: Craig Leres <leres@ee.lbl.gov>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907071020.DAA13817>
