Make less noise about CRC/Framing errors (Sun3/50 gets lots of them).

This commit is contained in:
gwr 1995-04-16 01:52:07 +00:00
parent a914f4e306
commit ef7ca50d54
1 changed files with 13 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_le.c,v 1.18 1995/04/13 21:54:55 gwr Exp $ */
/* $NetBSD: if_le.c,v 1.19 1995/04/16 01:52:07 gwr Exp $ */
/*
* LANCE Ethernet driver
@ -57,6 +57,8 @@
#include "if_le.h"
#include "if_le_subr.h"
#define RMD_BITS "\20\20own\17err\16fram\15oflo\14crc\13rbuf\12stp\11enp"
#define ETHER_MIN_LEN 64
#define ETHER_MAX_LEN 1518
@ -597,15 +599,16 @@ lerint(sc)
/* Process all buffers with valid data. */
do {
if (cdm->flags & (LE_FRAM | LE_OFLO | LE_CRC | LE_RBUFF)) {
if ((cdm->flags & (LE_FRAM | LE_OFLO | LE_ENP)) == (LE_FRAM | LE_ENP))
printf("%s: framing error\n", sc->sc_dev.dv_xname);
if ((cdm->flags & (LE_OFLO | LE_ENP)) == LE_OFLO)
printf("%s: overflow\n", sc->sc_dev.dv_xname);
if ((cdm->flags & (LE_CRC | LE_OFLO | LE_ENP)) == (LE_CRC | LE_ENP))
printf("%s: crc mismatch\n", sc->sc_dev.dv_xname);
if (cdm->flags & LE_RBUFF)
printf("%s: receive buffer error\n", sc->sc_dev.dv_xname);
if (cdm->flags & LE_ERR) {
#ifdef LEDEBUG
/*
* XXX - These happen a LOT on the Sun3/50 so
* it is really NOT appropriate to print them.
*/
printf("%s: error, cdm->flags=%b\n",
sc->sc_dev.dv_xname, cdm->flags, RMD_BITS);
#endif
sc->sc_if.if_ierrors++;
} else if (cdm->flags & (LE_STP | LE_ENP) != (LE_STP | LE_ENP)) {
do {
cdm->mcnt = 0;