Re: mec and resets
Izumi Tsutsui <[email protected]>
| Newsgroups | gmane.os.netbsd.ports.sgimips |
|---|---|
| Message-ID | <[email protected]> |
[email protected] wrote: > I crashed the machine in my first 'scp' attempt. > The good thing is that it doesn't reboot, it just freezes, so at > least we know that the watchdog was causing the reboot. How about this one more change? (what Linux driver does) --- Index: if_mec.c =================================================================== RCS file: /cvsroot/src/sys/arch/sgimips/mace/if_mec.c,v retrieving revision 1.20 diff -u -r1.20 if_mec.c --- if_mec.c 14 May 2008 13:29:28 -0000 1.20 +++ if_mec.c 4 Aug 2008 13:51:14 -0000 @@ -836,7 +837,8 @@ break; m = NULL; - if (sc->sc_txpending == MEC_NTXDESC) { + if (sc->sc_txpending == MEC_NTXDESC - 1) { + /* preserve the last entry to avoid wraparound */ break; } --- Izumi Tsutsui