Subject: Re: question (fwd)
To: Frederick Bruckman <fb@enteract.com>
From: Dave Huang <khym@bga.com>
List: port-mac68k
Date: 10/10/1999 15:28:04
On Sun, 10 Oct 1999, Frederick Bruckman wrote:
> > I'm running NetBSD on my Centris 660AV and I'm having a strange
> > problem.  Everything is working fine, but whenever I conduct any network
> > activity, it reports "mc0: collision error" over and over again.  It
> > works just fine, but it makes lynx really hard to use :-).
> 
> Sounds like the SQE is on? Really old transcievers have an SQE switch
> which, when set on, will cause the collision line to be asserted on
> every transmission.

Sounds reasonable to me... I've found out that the mc driver really
shouldn't be complaining about about what it's reporting as a "collision
error" (and probably _should_ complain if a packet was dropped due to
too many collisions). I sent the following patch in a while back, but it
never made it in... I should've sent a PR instead :) (and I will :)

--- /usr/src/sys/arch/mac68k/dev/if_mc.c	Wed Jul  8 06:09:57 1998
+++ if_mc.c	Tue Aug 18 21:24:01 1998
@@ -510,7 +510,9 @@
 	}
 
 	if (ir & CERR) {
+#ifdef MCDEBUG
 		printf("%s: collision error\n", sc->sc_dev.dv_xname);
+#endif
 		sc->sc_if.if_collisions++;
 	}
 
@@ -557,6 +559,7 @@
 	else if (xmtfs & ONE)
 		sc->sc_if.if_collisions++;
 	else if (xmtfs & RTRY) {
+		printf("%s: excessive collisions\n", sc->sc_dev.dv_xname);
 		sc->sc_if.if_collisions += 16;
 		sc->sc_if.if_oerrors++;
 	}
-- 
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 23 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++