]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DEVEL15-rx-buffer-allocation-20080812
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 12 Aug 2008 19:42:03 +0000 (19:42 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 12 Aug 2008 19:42:03 +0000 (19:42 +0000)
commit80e68970d29b6ad669a4ee9a94e528bd44035e5f
treec2e40feaee32cee0d1c907d436dd69b393f8b889
parent6b86807f4602c4c154b699bdaf17d534866e0e08
DEVEL15-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()

(cherry picked from commit 643a632a38d3a9b0b9d4819abb37e227b5946c47)
src/rx/rx_globals.h
src/rx/rx_packet.c