Deleted Added
full compact
75c75
< __FBSDID("$FreeBSD: head/sys/dev/nve/if_nve.c 158651 2006-05-16 14:37:58Z phk $");
---
> __FBSDID("$FreeBSD: head/sys/dev/nve/if_nve.c 158735 2006-05-18 23:19:44Z jhb $");
874a875,885
> /*
> * On nForce4, the chip doesn't interrupt on transmit,
> * so try to flush transmitted packets from the queue
> * if it's getting large (see note in nve_watchdog).
> */
> if (sc->pending_txs > TX_RING_SIZE/2) {
> sc->hwapi->pfnDisableInterrupts(sc->hwapi->pADCX);
> sc->hwapi->pfnHandleInterrupt(sc->hwapi->pADCX);
> sc->hwapi->pfnEnableInterrupts(sc->hwapi->pADCX);
> }
>
1277a1289
> int pending_txs_start;
1286c1298
< * completions. If that clears up all the pending tx
---
> * completions. If that clears up any of the pending tx
1288c1300,1301
< * message or resetting the adapter.
---
> * message or resetting the adapter, as we can then conclude
> * the chip hasn't actually crashed (it's still sending packets).
1289a1303
> pending_txs_start = sc->pending_txs;
1293c1307
< if (sc->pending_txs == 0) {
---
> if (sc->pending_txs < pending_txs_start) {