From: Vlad Zolotarov Date: Tue, 23 Dec 2014 17:23:17 +0000 (+0200) Subject: mem: search only dpdk hugetlbfs maps X-Git-Tag: spdx-start~9854 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;ds=sidebyside;h=8cf8fe6c3e55055d89bd9b7e4d288d8148f54dc6;p=dpdk.git mem: search only dpdk hugetlbfs maps When scanning the hugetlbfs maps search only for the DPDK maps. This will allow the application create its own hugetlbfs mappings and use the DPDK facilities on the same hugetlbfs mount point. Signed-off-by: Vlad Zolotarov Acked-by: Thomas Monjalon --- diff --git a/lib/librte_eal/linuxapp/eal/eal_memory.c b/lib/librte_eal/linuxapp/eal/eal_memory.c index bae2507988..a67a1b0258 100644 --- a/lib/librte_eal/linuxapp/eal/eal_memory.c +++ b/lib/librte_eal/linuxapp/eal/eal_memory.c @@ -611,7 +611,7 @@ find_numasocket(struct hugepage_file *hugepg_tbl, struct hugepage_info *hpi) } snprintf(hugedir_str, sizeof(hugedir_str), - "%s/", hpi->hugedir); + "%s/%s", hpi->hugedir, internal_config.hugefile_prefix); /* parse numa map */ while (fgets(buf, sizeof(buf), f) != NULL) {