mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 12:45:16 +00:00
[PCNET]
- Allocate receive and transmit buffers (each 49152 bytes) as cached shared memory to increase the likelihood of a successful allocation in a low memory scenario See issue #6284 for more details. svn path=/trunk/; revision=53148
This commit is contained in:
parent
6276b33958
commit
cd830b727c
|
@ -373,7 +373,7 @@ MiAllocateSharedMemory(
|
|||
/* allocate transmit buffers */
|
||||
Adapter->TransmitBufferLength = BUFFER_SIZE * NUMBER_OF_BUFFERS;
|
||||
NdisMAllocateSharedMemory(Adapter->MiniportAdapterHandle, Adapter->TransmitBufferLength,
|
||||
FALSE, (PVOID *)&Adapter->TransmitBufferPtrVirt, &PhysicalAddress);
|
||||
TRUE, (PVOID *)&Adapter->TransmitBufferPtrVirt, &PhysicalAddress);
|
||||
if(!Adapter->TransmitBufferPtrVirt)
|
||||
{
|
||||
DPRINT1("insufficient resources\n");
|
||||
|
@ -392,7 +392,7 @@ MiAllocateSharedMemory(
|
|||
/* allocate receive buffers */
|
||||
Adapter->ReceiveBufferLength = BUFFER_SIZE * NUMBER_OF_BUFFERS;
|
||||
NdisMAllocateSharedMemory(Adapter->MiniportAdapterHandle, Adapter->ReceiveBufferLength,
|
||||
FALSE, (PVOID *)&Adapter->ReceiveBufferPtrVirt, &PhysicalAddress);
|
||||
TRUE, (PVOID *)&Adapter->ReceiveBufferPtrVirt, &PhysicalAddress);
|
||||
if(!Adapter->ReceiveBufferPtrVirt)
|
||||
{
|
||||
DPRINT1("insufficient resources\n");
|
||||
|
|
Loading…
Reference in a new issue