mempool: allow populating with unaligned virtual area
authorOlivier Matz <olivier.matz@6wind.com>
Tue, 5 Nov 2019 15:37:00 +0000 (16:37 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 6 Nov 2019 10:11:09 +0000 (11:11 +0100)
commit354788b60cfd053b5a576734662bd8f70fe8e419
treeada713b75eec2bd6d46664d08fffd488bc6d5f8b
parent23a2489a83418b6ab1bf8b33ef20785a497c4716
mempool: allow populating with unaligned virtual area

rte_mempool_populate_virt() currently requires that both addr
and length are page-aligned.

Remove this unneeded constraint which can be annoying with big
hugepages (ex: 1GB).

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Nipun Gupta <nipun.gupta@nxp.com>
lib/librte_mempool/rte_mempool.c
lib/librte_mempool/rte_mempool.h