]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/freebsd/eal/eal.c
eal/freebsd: fix config creation
[dpdk.git] / lib / librte_eal / freebsd / eal / eal.c
index 13ca1202cbaa9f0be6b49416b5007e9dabef6173..d53f0fe697a4b39e32bd70525a5ab80c9da43119 100644 (file)
@@ -266,6 +266,11 @@ rte_eal_config_create(void)
        memcpy(rte_mem_cfg_addr, &early_mem_config, sizeof(early_mem_config));
        rte_config.mem_config = rte_mem_cfg_addr;
 
+       /* store address of the config in the config itself so that secondary
+        * processes could later map the config into this exact location
+        */
+       rte_config.mem_config->mem_cfg_addr = (uintptr_t) rte_mem_cfg_addr;
+
        return 0;
 }