On Wed, 4 Apr 2018 00:21:23 +0100 Anatoly Burakov <anatoly.bura...@intel.com> wrote:
> This adds a new set of _contig API's to rte_memzone. For now, > hugepage memory is always contiguous, but we need to prepare the > drivers for the switch. > > Signed-off-by: Anatoly Burakov <anatoly.bura...@intel.com> Why not make fragmentation an optional flag to the memzone_reserved rather than a new API. That way less drivers need to be changed. #define RTE_MEMZONE_SPARSE 0x00100000 /* Allow zone to be non-contiguous */