mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user