Subject: CVS commit: src
To: None <source-changes@netbsd.org>
From: Jonathan Stone <jonathan@netbsd.org>
List: source-changes
Date: 04/19/1999 21:40:25
Module Name:	src
Committed By:	jonathan
Date:		Tue Apr 20 04:40:24 UTC 1999

Modified Files:
	src/sys/dev/ic: elink3.c
Log Message:
Calling DELAY() during polling for command completion of the normal
per-packet discard of every received packet increases latency and
decrease throughput.  INstead, Spin on S_COMMAND_IN_PROGESS for enough
iterations as the expected time to completion.  Only do DELAY()/poll
loops (as suggested by Jason Thorpe) if spinning fails.
Take PCI as fastest case and compute worst-case estimate.

Shorten DELAY() in S_COMMAND_COMPLETE polling-loop up 10, loop-count
down.  to speed up epreset() completion (m/c filter change, ifup/ipdown, etc).