mirror of
https://github.com/reactos/reactos.git
synced 2025-06-27 17:39:47 +00:00
[TCPIP]
- Increase the default and overflow size of the TCP/IP packet pool to allow for periods of very high network load (such as using BitTorrent or hosting high load services on a network) without dropping outgoing or incoming packets - Increase the size of the TCP/IP buffer pool for the same reason svn path=/trunk/; revision=52641
This commit is contained in:
parent
2ebb206d88
commit
d309cc3c56
1 changed files with 2 additions and 2 deletions
|
@ -662,14 +662,14 @@ DriverEntry(
|
||||||
EntityMax = MAX_TDI_ENTITIES;
|
EntityMax = MAX_TDI_ENTITIES;
|
||||||
|
|
||||||
/* Allocate NDIS packet descriptors */
|
/* Allocate NDIS packet descriptors */
|
||||||
NdisAllocatePacketPool(&NdisStatus, &GlobalPacketPool, 100, sizeof(PACKET_CONTEXT));
|
NdisAllocatePacketPoolEx(&NdisStatus, &GlobalPacketPool, 500, 1500, sizeof(PACKET_CONTEXT));
|
||||||
if (NdisStatus != NDIS_STATUS_SUCCESS) {
|
if (NdisStatus != NDIS_STATUS_SUCCESS) {
|
||||||
TiUnload(DriverObject);
|
TiUnload(DriverObject);
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Allocate NDIS buffer descriptors */
|
/* Allocate NDIS buffer descriptors */
|
||||||
NdisAllocateBufferPool(&NdisStatus, &GlobalBufferPool, 100);
|
NdisAllocateBufferPool(&NdisStatus, &GlobalBufferPool, 2000);
|
||||||
if (NdisStatus != NDIS_STATUS_SUCCESS) {
|
if (NdisStatus != NDIS_STATUS_SUCCESS) {
|
||||||
TiUnload(DriverObject);
|
TiUnload(DriverObject);
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue