mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
- Only call NdisMEthIndicateReceiveComplete once per batch of packets
- Slight performance increase svn path=/trunk/; revision=40721
This commit is contained in:
parent
868c747030
commit
c68a776204
1 changed files with 7 additions and 1 deletions
|
@ -95,6 +95,8 @@ MiniportHandleInterrupt(
|
|||
}
|
||||
if(Data & CSR0_RINT)
|
||||
{
|
||||
BOOLEAN IndicatedData = FALSE;
|
||||
|
||||
DPRINT("receive interrupt\n");
|
||||
|
||||
while(1)
|
||||
|
@ -135,7 +137,8 @@ MiniportHandleInterrupt(
|
|||
DPRINT("Indicating a %d-byte packet (index %d)\n", ByteCount, Adapter->CurrentReceiveDescriptorIndex);
|
||||
|
||||
NdisMEthIndicateReceive(Adapter->MiniportAdapterHandle, 0, Buffer, 14, Buffer+14, ByteCount-14, ByteCount-14);
|
||||
NdisMEthIndicateReceiveComplete(Adapter->MiniportAdapterHandle);
|
||||
|
||||
IndicatedData = TRUE;
|
||||
|
||||
RtlZeroMemory(Descriptor, sizeof(RECEIVE_DESCRIPTOR));
|
||||
Descriptor->RBADR =
|
||||
|
@ -148,6 +151,9 @@ MiniportHandleInterrupt(
|
|||
|
||||
Adapter->Statistics.RcvGoodFrames++;
|
||||
}
|
||||
|
||||
if (IndicatedData)
|
||||
NdisMEthIndicateReceiveComplete(Adapter->MiniportAdapterHandle);
|
||||
}
|
||||
if(Data & CSR0_TINT)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue