rx-buffer-allocation-20080812
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 12 Aug 2008 19:39:59 +0000 (19:39 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 12 Aug 2008 19:39:59 +0000 (19:39 +0000)
commit643a632a38d3a9b0b9d4819abb37e227b5946c47
treec97854b70e742715a43c99f9304971cd59f9465f
parentc19c4b3ebb9460eb373081fcbfcca6b7ae1f1495
rx-buffer-allocation-20080812

LICENSE MIT

Prevent rxi_MorePacketsNoLock() from dereferencing a NULL pointer if
the requested allocation size cannot be satsified.  In that case back
off the number of packets until osi_Alloc() succeeds or panic if no
packets can be allocated at all.

In AllocPacketBufs() do not transfer more than rx_TSFPQGlobSize packets.

Modify RX_TS_FPQ_GTOL2() macro to protect against transfering more packets
that are actually free.

Modify RX_TS_FPQ_COMPUTE_LIMITS() to enforce a rx_TSFPQGlobSize maximum
value of 64 packets to prevent ever increasing allocation sizes within
AllocPacketBufs()
src/rx/rx_globals.h
src/rx/rx_packet.c