[PATCH] eal: fixes the bug where rte_malloc() fails to allocates memory

David Marchand david.marchand at redhat.com
Thu Jun 23 09:50:46 CEST 2022


On Wed, May 25, 2022 at 7:18 AM Fidaullah Noonari
<fidaullah.noonari at emumba.com> wrote:
>
> if rte malloc is called to allocate memory of size
> is between multiple of hugepage size minus malloc_header_len
> and hugepage size rte_malloc fails to allocate memory.
> this fix replaces malloc_elem_trailer_len with
> malloc_elem_overhead in try_expand_heap() to include
> malloc_elem_header_len when calculating n_seg.
>
> Bugzilla ID: 800
Fixes: 07dcbfe0101f ("malloc: support multiprocess memory hotplug")
Cc: stable at dpdk.org

>
> Signed-off-by: Fidaullah Noonari <fidaullah.noonari at emumba.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk at gmail.com>

Applied, thanks.


-- 
David Marchand



More information about the dev mailing list