Fix a problem where stats overflow interrupts would cause

a major slowdown, and re-enable stats overflow interrupts.

For future reference, the bug was in our code, and not
some bug in the 3com chips.

Reviewed by:	wpaul
MFC after:	2 days
This commit is contained in:
silby 2001-12-17 22:24:19 +00:00
parent c31598576d
commit 6abf6dd855
2 changed files with 2 additions and 2 deletions

View File

@ -2197,7 +2197,7 @@ static void xl_stats_update(xsc)
XL_SEL_WIN(4);
CSR_READ_1(sc, XL_W4_BADSSD);
if (mii != NULL)
if ((mii != NULL) && (!sc->xl_stats_no_timeout))
mii_tick(mii);
XL_SEL_WIN(7);

View File

@ -177,7 +177,7 @@
* Interrupts we normally want enabled.
*/
#define XL_INTRS \
(XL_STAT_UP_COMPLETE|/*XL_STAT_STATSOFLOW|*/XL_STAT_ADFAIL| \
(XL_STAT_UP_COMPLETE|XL_STAT_STATSOFLOW|XL_STAT_ADFAIL| \
XL_STAT_DOWN_COMPLETE|XL_STAT_TX_COMPLETE|XL_STAT_INTLATCH)
/*