Lines Matching defs:config
179 struct rte_config *config = rte_eal_get_configuration();
181 size_t cfg_len = sizeof(*config->mem_config);
193 /* map the config before hugepage address so that we don't waste a page */
228 /* reserve space for config */
250 memcpy(rte_mem_cfg_addr, config->mem_config, sizeof(struct rte_mem_config));
251 config->mem_config = rte_mem_cfg_addr;
253 /* store address of the config in the config itself so that secondary
254 * processes could later map the config into this exact location
256 config->mem_config->mem_cfg_addr = (uintptr_t) rte_mem_cfg_addr;
257 config->mem_config->dma_maskbits = 0;
262 /* attach to an existing shared memory config */
266 struct rte_config *config = rte_eal_get_configuration();
296 config->mem_config = mem_config;
301 /* reattach the shared config at exact memory location primary process has it */
305 struct rte_config *config = rte_eal_get_configuration();
314 /* save the address primary process has mapped shared config to */
316 (void *) (uintptr_t) config->mem_config->mem_cfg_addr;
318 /* unmap original config */
319 munmap(config->mem_config, sizeof(struct rte_mem_config));
321 /* remap the config at proper address */
343 config->mem_config = mem_config;
357 /* if there no shared config, there can be no secondary processes */
375 /* Sets up rte_config structure with the pointer to shared memory config.*/
379 struct rte_config *config = rte_eal_get_configuration();
383 config->process_type = internal_conf->process_type;
385 switch (config->process_type) {
410 config->process_type);
803 const struct rte_config *config = rte_eal_get_configuration();
805 socket_id = rte_lcore_to_socket_id(config->main_lcore);
926 const struct rte_config *config = rte_eal_get_configuration();
999 rte_eal_init_alert("Cannot init config");
1179 &lcore_config[config->main_lcore].cpuset) != 0) {
1184 __rte_thread_init(config->main_lcore,
1185 &lcore_config[config->main_lcore].cpuset);
1189 config->main_lcore, (uintptr_t)pthread_self(), cpuset,