malloc: make alignment requirements more stringent
authorAnatoly Burakov <anatoly.burakov@intel.com>
Fri, 14 Dec 2018 11:54:01 +0000 (11:54 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 20 Dec 2018 14:34:03 +0000 (15:34 +0100)
The external heaps API already implicitly expects start address
of the external memory area to be page-aligned, but it is not
enforced or documented. Fix this by implementing additional
parameter checks at memory add call, and document the page
alignment requirement explicitly.

Fixes: 7d75c31014f7 ("malloc: allow adding memory to named heaps")
Cc: stable@dpdk.org
Suggested-by: Yongseok Koh <yskoh@mellanox.com>
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>

No differences found