From 6abf6dd855ba8d1a0e1360b33ce40fe1e86e5435 Mon Sep 17 00:00:00 2001 From: silby Date: Mon, 17 Dec 2001 22:24:19 +0000 Subject: 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 --- sys/pci/if_xl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/pci/if_xl.c') diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c index aa7f4fc..5624e9c 100644 --- a/sys/pci/if_xl.c +++ b/sys/pci/if_xl.c @@ -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); -- cgit v1.1