Author: cgutman
Date: Wed Dec 2 23:38:10 2009
New Revision: 44369
URL:
http://svn.reactos.org/svn/reactos?rev=44369&view=rev
Log:
- Allocate send and receive buffers from paged pool (saves 32KB of non-paged pool per
socket)
Modified:
branches/aicom-network-branch/drivers/network/afd/afd/connect.c
branches/aicom-network-branch/drivers/network/afd/afd/main.c
Modified: branches/aicom-network-branch/drivers/network/afd/afd/connect.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-branch/drivers/ne…
==============================================================================
--- branches/aicom-network-branch/drivers/network/afd/afd/connect.c [iso-8859-1]
(original)
+++ branches/aicom-network-branch/drivers/network/afd/afd/connect.c [iso-8859-1] Wed Dec
2 23:38:10 2009
@@ -37,12 +37,12 @@
/* Allocate the receive area and start receiving */
FCB->Recv.Window =
- ExAllocatePool( NonPagedPool, FCB->Recv.Size );
+ ExAllocatePool( PagedPool, FCB->Recv.Size );
if( !FCB->Recv.Window ) return STATUS_NO_MEMORY;
FCB->Send.Window =
- ExAllocatePool( NonPagedPool, FCB->Send.Size );
+ ExAllocatePool( PagedPool, FCB->Send.Size );
if( !FCB->Send.Window ) {
ExFreePool( FCB->Recv.Window );
Modified: branches/aicom-network-branch/drivers/network/afd/afd/main.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-branch/drivers/ne…
==============================================================================
--- branches/aicom-network-branch/drivers/network/afd/afd/main.c [iso-8859-1] (original)
+++ branches/aicom-network-branch/drivers/network/afd/afd/main.c [iso-8859-1] Wed Dec 2
23:38:10 2009
@@ -144,11 +144,11 @@
if( FCB->Flags & SGID_CONNECTIONLESS ) {
AFD_DbgPrint(MID_TRACE,("Packet oriented socket\n"));
/* Allocate our backup buffer */
- FCB->Recv.Window = ExAllocatePool( NonPagedPool, FCB->Recv.Size );
+ FCB->Recv.Window = ExAllocatePool( PagedPool, FCB->Recv.Size );
if( !FCB->Recv.Window ) Status = STATUS_NO_MEMORY;
if( NT_SUCCESS(Status) )
{
- FCB->Send.Window = ExAllocatePool( NonPagedPool, FCB->Send.Size );
+ FCB->Send.Window = ExAllocatePool( PagedPool, FCB->Send.Size );
if( !FCB->Send.Window ) {
if( FCB->Recv.Window ) ExFreePool( FCB->Recv.Window );
Status = STATUS_NO_MEMORY;