5.2-RC oerrs and collisions on dc0

Don Lewis truckman at FreeBSD.org
Sun Jan 4 00:59:39 PST 2004


On  4 Jan, Dejan Lesjak wrote:
> On Sunday 04 of January 2004 06:33, Don Lewis wrote:
>> On  4 Jan, Dejan Lesjak wrote:
>> > Hello again,
>> > With this line commented out, I still get both errors and collisions,
>> > twice as much collisions as errors. On another occasion, I also added two
>> > printf lines in here:
>> >                         if (txstat & DC_TXSTAT_EXCESSCOLL)
>> >                                 ifp->if_collisions++;
>> > 				printf("EXCESSCOLL\n");
>> >                         if (txstat & DC_TXSTAT_LATECOLL)
>> >                                 ifp->if_collisions++;
>> > 				printf("LATECOLL\n");
>> > and I constantly get both of those, so this would be where counters go up
>> > if this helps in any way.
>>
>> The driver might be less verbose if you added some braces here.
> 
> Hm.. Yes I did that, however I was writing mail relying on memory which seems 
> to have failed me.

When errors occur in full duplex mode, you might want to print the value
of
	CSR_READ_4(sc, DC_NETCFG)
to verify that the full duplex bit is actually set.


More information about the freebsd-current mailing list