numam-dpdk/lib
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
..
acl acl: fix rules with 8-byte field size 2022-05-30 23:30:33 +02:00
bbdev lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
bitratestats bitrate: promote free function to stable 2021-10-01 15:31:47 +02:00
bpf bpf: fix build with some libpcap version on FreeBSD 2022-03-14 11:41:52 +01:00
cfgfile version: 21.11-rc0 2021-08-17 08:37:52 +02:00
cmdline cmdline: remove unneeded header includes 2022-06-21 16:46:56 +02:00
compressdev compressdev: fix missing space in log macro 2022-03-15 02:13:57 +01:00
cryptodev replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
distributor distributor: fix potential overflow 2022-02-27 19:06:59 +01:00
dmadev dmadev: add telemetry 2022-06-06 23:31:29 +02:00
eal malloc: fix allocation of almost hugepage size 2022-06-23 13:40:50 +02:00
efd efd: fix uninitialized structure 2022-02-27 18:58:47 +01:00
ethdev ethdev: remove unneeded header includes 2022-06-21 16:46:56 +02:00
eventdev eventdev/eth_tx: fix adapter creation 2022-06-20 20:39:11 +02:00
fib lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
flow_classify lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
gpudev gpudev: remove unneeded header includes 2022-06-21 16:46:56 +02:00
graph graph: remove useless duplicate name check 2022-03-07 20:31:14 +01:00
gro lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
gso gso: remove unneeded header includes 2022-06-21 16:46:56 +02:00
hash hash: remove unneeded header includes 2022-06-21 16:46:56 +02:00
ip_frag replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
ipsec ipsec: fix NAT-T ports and length 2022-06-21 20:04:49 +02:00
jobstats jobstats: remove unneeded header includes 2022-06-21 16:46:56 +02:00
kni kni: add missing C++ guards 2022-02-22 14:47:49 +01:00
kvargs lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
latencystats lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
lpm lpm: fix scalar version header for C++ 2022-06-15 09:12:19 +02:00
mbuf mbuf: dump outer VLAN 2022-06-01 11:15:37 +02:00
member lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
mempool lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
meter meter: remove unneeded header includes 2022-06-21 16:46:56 +02:00
metrics metrics: add missing C++ guards 2022-02-22 14:47:49 +01:00
net net: remove unneeded header includes 2022-06-21 16:46:56 +02:00
node lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
pcapng pcapng: fix timestamp wrapping in output files 2022-06-01 16:39:25 +02:00
pci lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
pdump lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
pipeline pipeline: rework optimization pattern for header generation 2022-06-20 16:14:50 +02:00
port port: support packet mirroring 2022-06-01 15:04:34 +02:00
power power: remove unneeded header includes 2022-06-21 16:46:56 +02:00
rawdev rawdev: remove unneeded header includes 2022-06-21 16:46:56 +02:00
rcu lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
regexdev build: hide local symbols in shared libraries 2022-03-08 15:22:33 +01:00
reorder lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
rib replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
ring lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
sched sched: fix floating point math 2022-06-22 11:11:48 +02:00
security security: fix SA lifetime comments 2022-04-28 09:26:48 +02:00
stack lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
table replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
telemetry telemetry: add missing C++ guards 2022-02-22 14:47:49 +01:00
timer timer: remove unneeded header includes 2022-06-21 16:46:57 +02:00
vhost vhost/crypto: fix descriptor processing 2022-06-22 18:58:31 +02:00
meson.build build: add definitions for use as Meson subproject 2022-06-07 20:49:20 +02:00