Home
last modified time | relevance | path

Searched refs:lcore_count (Results 1 – 8 of 8) sorted by relevance

/f-stack/dpdk/app/test/
H A Dtest_ticketlock.c100 static uint64_t lcore_count[RTE_MAX_LCORE] __rte_cache_aligned; variable
119 while (lcore_count[lcore] < MAX_LOOP) { in load_loop_fn()
122 lcore_count[lcore]++; in load_loop_fn()
144 memset(lcore_count, 0, sizeof(lcore_count)); in test_ticketlock_perf()
151 memset(lcore_count, 0, sizeof(lcore_count)); in test_ticketlock_perf()
169 tcount += lcore_count[i]; in test_ticketlock_perf()
H A Dtest_ring_perf.c37 static volatile unsigned lcore_count = 0; variable
189 if (__atomic_add_fetch(&lcore_count, 1, __ATOMIC_RELAXED) != 2) in enqueue_dequeue_bulk_helper()
191 if (__sync_add_and_fetch(&lcore_count, 1) != 2) in enqueue_dequeue_bulk_helper()
193 while(lcore_count != 2) in enqueue_dequeue_bulk_helper()
297 lcore_count = 0; in run_on_core_pair()
/f-stack/dpdk/lib/librte_eal/windows/
H A Deal_lcore.c32 unsigned int lcore_count; member
116 if (cpu_map.lcore_count == RTE_DIM(cpu_map.lcores)) { in eal_create_cpu_map()
121 lcore = &cpu_map.lcores[cpu_map.lcore_count]; in eal_create_cpu_map()
125 cpu_map.lcore_count++; in eal_create_cpu_map()
136 cpu_map.socket_count, cpu_map.lcore_count); in eal_create_cpu_map()
147 return lcore_id < cpu_map.lcore_count; in eal_cpu_detected()
/f-stack/dpdk/lib/librte_eal/common/
H A Deal_common_lcore.c28 return rte_eal_get_configuration()->lcore_count; in rte_lcore_count()
192 config->lcore_count = count; in rte_eal_cpu_init()
196 RTE_LOG(INFO, EAL, "Detected %u lcore(s)\n", config->lcore_count); in rte_eal_cpu_init()
360 cfg->lcore_count++; in eal_lcore_non_eal_allocate()
381 cfg->lcore_count--; in eal_lcore_non_eal_allocate()
402 cfg->lcore_count--; in eal_lcore_non_eal_release()
H A Drte_service.c419 int32_t lcore_count = rte_service_lcore_list(ids, RTE_MAX_LCORE); in rte_service_may_be_active() local
425 for (i = 0; i < lcore_count; i++) { in rte_service_may_be_active()
560 int32_t lcore_count = rte_service_lcore_list(ids, RTE_MAX_LCORE); in rte_service_start_with_defaults() local
562 if (lcore_count == 0) in rte_service_start_with_defaults()
565 for (i = 0; (int)i < lcore_count; i++) in rte_service_start_with_defaults()
579 if (lcore_iter >= lcore_count) in rte_service_start_with_defaults()
H A Deal_private.h46 uint32_t lcore_count; /**< Number of available logical cores. */ member
H A Deal_common_options.c670 cfg->lcore_count = count; in update_lcore_config()
1147 cfg->lcore_count = count; in eal_parse_lcores()
1800 cfg->lcore_count -= removed; in eal_auto_detect_cores()
/f-stack/dpdk/examples/ipsec-secgw/
H A Devent_helper.c150 int lcore_count, nb_eventdev, nb_eth_dev, ret; in eh_set_default_conf_eventdev() local
175 lcore_count = rte_lcore_count(); in eh_set_default_conf_eventdev()
206 if (eventdev_config->nb_eventport > lcore_count) { in eh_set_default_conf_eventdev()
208 eventdev_config->nb_eventport = lcore_count; in eh_set_default_conf_eventdev()