mem: retry malloc with smaller block size when failure
authorIntel <intel.com>
Wed, 18 Sep 2013 10:00:00 +0000 (12:00 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 9 Oct 2013 14:04:09 +0000 (16:04 +0200)
commit7c60fd9ef68d96a58f6e29e4e7352d5b33283a30
treebb1ff3ffd652778e178df1f35bb319141bcf06d0
parent9b15ba895b9f3627320cb7769a42f0313b1352f4
mem: retry malloc with smaller block size when failure

rte_malloc try to allocate memzone blocks with a minimum size.
It it fails, it retries for a smaller size than the standard one.
It will really fail if it cannot allocate block of the requested size.

Signed-off-by: Intel
lib/librte_malloc/malloc_heap.c