Re: High DPC Use and a Method to Reboot a network card?
- From: "Stephan Wolf [MVP]" <stewo68@xxxxxxxxxxx>
- Date: 4 May 2006 06:05:21 -0700
IMH wrote:
[..]
I am not familiar with how drivers work and so I don't know how the winpcap
driver interacts with the NIC or whether it could influence time spent in a
DPC.
Well, ok, protocol drivers like the one that comes with WinPCap usually
don't have a DPR but they can actually run in the context of the
miniport driver underneath them:
DPC -> MiniportHandleInterrupt() -> NdisMIndicateReceivePacket() ->
ProtocolReceivePacket() [in e.g. WinPCap]
Since WinPCap is AFIK open source, you can probably download and
inspect the source code here:
http://www.winpcap.org
Are you saying that it is impossible for winpcap to influence the DPC time
in any way? In which case this almost certainly appears to be driver
related and I am talking with 3Com about this at present.
Protocol drivers should usually do as little as possible in
ProtocolReceivePacket(), which runs in DPC context (i.e. at IRQL =
DISPATCH_LEVEL).
I was figuring that the IC on the NIC performing the brains of the operation
could be reset in some way (or so our hardware genius here suggests as it's
the case with the ICs he is working with) so I hoped we could ask the driver
to reboot it; clearly it's a little more complicated than that however. I'm
already investigating the SetupDi commands to see what happens there...
Well, an NDIS protocol driver can call NdisReset(), which "forwards a
reset request to an underlying driver."
See the DDK docs for more information on the aforementioned
NDIS-related functions:
http://msdn.microsoft.com/library/
> "Win32 and COM Development"
> "Windows Driver Kit"
> "Device and Driver Technologies"
> "Network"
Although that might help, I strongly recommend you try to eliminate the
actual cause of the problem.
Stephan
.
- Follow-Ups:
- References:
- High DPC Use and a Method to Reboot a network card?
- From: IMH
- Re: High DPC Use and a Method to Reboot a network card?
- From: Stephan Wolf [MVP]
- Re: High DPC Use and a Method to Reboot a network card?
- From: IMH
- High DPC Use and a Method to Reboot a network card?
- Prev by Date: Endpoints for bulk IN and isoc IN
- Next by Date: Re: IDE controller access
- Previous by thread: Re: High DPC Use and a Method to Reboot a network card?
- Next by thread: Re: High DPC Use and a Method to Reboot a network card?
- Index(es):
Relevant Pages
|