Skip to contentSkip to conversation

eal_memory: Search only DPDK hugetlbfs maps

RFC PATCH In review Vlad Zolotarov 2 participants 2 messages Dec 23, 2014 – Jan 15, 2015 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 eal_memory: 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.

---
 lib/librte_eal/linuxapp/eal/eal_memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_eal/linuxapp/eal/eal_memory.c +1 -1
index bae2507..a67a1b0 100644
@@ -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) {
Signature · 1 line
2.1.0
#2 lore raw
In reply to a message not in the archive
Quoted 5 lines

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.

It is a RFC patch but there is no comment, so
Applied

Thanks

Signature · 1 line
Thomas