Path: news.mitre.org!blanket.mitre.org!news.tufts.edu!cam-news-feed5.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!nntprelay.mathworks.com!news.pn.com!nntp.pn.com!main.de.uu.net!Dortmund.Germany.EU.net!dortmund.de.uu.net!spock.skd.de!not-for-mail From: "Stephan Wolf" Newsgroups: comp.os.ms-windows.programmer.nt.kernel-mode Subject: Re: NDIS drivers, strange perf behaviour!!! Date: Fri, 12 Dec 1997 22:16:32 GMT Organization: SysKonnect Lines: 29 Message-ID: <3491b33a.11645285@spock> References: <01bcff44$f03a8fc0$515102c2@artemis> <6630bj$4rc@news-central.tiac.net> <01bcffbf$04dab610$515102c2@artemis> <34865b20.2889494@spock> <01bd0592$abe927b0$515102c2@artemis> <348DDCC1.155D@pop.a001.sprintmail.com> NNTP-Posting-Host: swolf.skd.de X-Newsreader: Forte Free Agent 1.11/32.235 On Tue, 09 Dec 1997 16:05:22 -0800, Cristian wrote: >> Does everybody know the good frequency to call this >> NdisMEthIndicateReceiveComplete() function ? > Is >there any better idea from Microsoft - NdisMEthIndicateReceiveComplete() >being called a lot less often ?? It whould be interesting to know; DDK >is fuzzy on the issue. FYI, the NdisXxxIndicateReceiveComplete() stuff has its origin in the old NDIS2 (i.e. 16-bit NDIS - DOS & OS/2) days. Under DOS, packets are passed up to NDIS (and thus to the protocol(s)) during ISR time, i.e. when the NIC's IRQ line (and mostly also the CPU's interrupt flag) is disabled. Therefore, not much work can be done in the receive handler. When the ISR is complete, the IRQ line is re-enabled, and the Receive Complete handler is called. Thus, another interrupt can occur even if some protocol should wait for some external event (e.g. a packet being received from the network). Starting with NDIS3 (i.e. 32-bit NDIS - NT & W95), I'd say, it should be sufficient if one calls NdisXxxIndicateReceiveComplete() once at the end of the DPR (i.e. MiniportHandleInterrupt()) *if* at least one packet has been passed to NdisXxxIndicateReceive(). [Note that DDK Help proposes to also call the complete handler once every 10 received packets - probably Kyle's suggestion.] Stephan Wolf http://www.syskonnect.de SysKonnect - The Server Connectivity Company