mem: allow setting up segment list fd
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 13 Dec 2018 11:43:17 +0000 (11:43 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 20 Dec 2018 21:55:56 +0000 (22:55 +0100)
commitdf7722c75bedbff62686ad16951c4ad78d25611f
tree12beea8c832348dbf5a29a9579ad2673a5763a8d
parentd75eea314504834d18a94835ad858e3ecd0f8e41
mem: allow setting up segment list fd

Currently, only segment fd's for multi-file segments are supported,
while for memfd-backed no-huge memory we need single-file segments
mode. Add support for single-file segments in the internal API.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_eal/bsdapp/eal/eal_memalloc.c
lib/librte_eal/common/eal_memalloc.h
lib/librte_eal/linuxapp/eal/eal_memalloc.c