numam-dpdk/lib/eal
Fidaullah Noonari ce2f7d472e malloc: fix allocation of almost hugepage size
If called to allocate memory of size is between multiple of hugepage
size minus malloc_header_len and hugepage size, rte_malloc fails.

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: 07dcbfe010 ("malloc: support multiprocess memory hotplug")
Cc: stable@dpdk.org

Signed-off-by: Fidaullah Noonari <fidaullah.noonari@emumba.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
2022-06-23 13:40:50 +02:00
..
arm eal: remove unused arch-specific headers for locks 2022-06-08 15:44:20 +02:00
common malloc: fix allocation of almost hugepage size 2022-06-23 13:40:50 +02:00
freebsd eal/unix: make stack dump signal safe 2022-06-23 13:40:50 +02:00
include eal/unix: make stack dump signal safe 2022-06-23 13:40:50 +02:00
linux eal/unix: make stack dump signal safe 2022-06-23 13:40:50 +02:00
ppc eal: remove unused arch-specific headers for locks 2022-06-08 15:44:20 +02:00
riscv eal/riscv: fix vector header for C++ 2022-06-15 09:12:16 +02:00
unix eal/unix: make stack dump signal safe 2022-06-23 13:40:50 +02:00
windows eal: get/set thread priority per thread identifier 2022-06-07 13:33:14 +02:00
x86 eal/x86: drop export of internal alignment macro 2022-06-22 11:32:35 +02:00
meson.build eal: add OS defines for C conditional checks 2022-01-17 19:26:42 +01:00
version.map eal: provide pseudo-random floating point number 2022-06-22 10:59:09 +02:00