net/memif: support zero-copy slave
[dpdk.git] / lib / librte_eal / common / eal_common_mcfg.c
index 0cf9a62..36a8ca8 100644 (file)
@@ -162,3 +162,10 @@ rte_mcfg_timer_unlock(void)
        struct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config;
        rte_spinlock_unlock(&mcfg->tlock);
 }
+
+bool
+rte_mcfg_get_single_file_segments(void)
+{
+       struct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config;
+       return (bool)mcfg->single_file_segments;
+}