memzone: fix size on reserving biggest memzone
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 3 May 2018 16:00:47 +0000 (17:00 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 14 May 2018 00:10:36 +0000 (02:10 +0200)
commita82377cab87cea35bdd135fa8b8c4c485e2389f7
tree1519eee448aa2af1a03cbde62401f14a44cdde0a
parent3ff39e25e62afc9ca12c9e351ca1f19eef9cb509
memzone: fix size on reserving biggest memzone

Size of malloc heap elements include overhead, which should not
be counted as part of memzone.

Fixes: fafcc11985a2 ("mem: rework memzone to be allocated by malloc")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_eal/common/eal_common_memzone.c