Home
last modified time | relevance | path

Searched refs:lcore_id (Results 1 – 25 of 144) sorted by relevance

123456

/dpdk/lib/eal/common/
H A Deal_common_lcore.c148 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in rte_eal_cpu_init()
165 CPU_SET(lcore_id, &lcore_config[lcore_id].cpuset); in rte_eal_cpu_init()
174 lcore_id, lcore_config[lcore_id].core_id, in rte_eal_cpu_init()
178 for (; lcore_id < CPU_SETSIZE; lcore_id++) { in rte_eal_cpu_init()
182 lcore_id, eal_cpu_core_id(lcore_id), in rte_eal_cpu_init()
199 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in rte_eal_cpu_init()
290 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in rte_lcore_callback_register()
329 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in rte_lcore_callback_unregister()
351 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in eal_lcore_non_eal_allocate()
374 lcore_id); in eal_lcore_non_eal_allocate()
[all …]
H A Deal_common_thread.c175 __rte_thread_init(lcore_id, &lcore_config[lcore_id].cpuset); in eal_thread_loop()
211 lcore_config[lcore_id].ret = ret; in eal_thread_loop()
212 lcore_config[lcore_id].f = NULL; in eal_thread_loop()
326 unsigned int lcore_id; in rte_thread_register() local
344 if (lcore_id >= RTE_MAX_LCORE) in rte_thread_register()
345 lcore_id = LCORE_ID_ANY; in rte_thread_register()
347 if (lcore_id == LCORE_ID_ANY) { in rte_thread_register()
352 lcore_id); in rte_thread_register()
361 if (lcore_id != LCORE_ID_ANY) in rte_thread_unregister()
364 if (lcore_id != LCORE_ID_ANY) in rte_thread_unregister()
[all …]
H A Deal_common_launch.c70 int lcore_id; in rte_eal_mp_remote_launch() local
74 RTE_LCORE_FOREACH_WORKER(lcore_id) { in rte_eal_mp_remote_launch()
75 if (lcore_config[lcore_id].state != WAIT) in rte_eal_mp_remote_launch()
80 RTE_LCORE_FOREACH_WORKER(lcore_id) { in rte_eal_mp_remote_launch()
81 rte_eal_remote_launch(f, arg, lcore_id); in rte_eal_mp_remote_launch()
96 rte_eal_get_lcore_state(unsigned lcore_id) in rte_eal_get_lcore_state() argument
98 return lcore_config[lcore_id].state; in rte_eal_get_lcore_state()
108 unsigned lcore_id; in rte_eal_mp_wait_lcore() local
110 RTE_LCORE_FOREACH_WORKER(lcore_id) { in rte_eal_mp_wait_lcore()
111 rte_eal_wait_lcore(lcore_id); in rte_eal_mp_wait_lcore()
/dpdk/lib/power/
H A Dpower_acpi_cpufreq.c167 pi->lcore_id); in power_get_available_freqs()
172 pi->lcore_id); in power_get_available_freqs()
177 count, pi->lcore_id); in power_get_available_freqs()
256 "in use\n", lcore_id); in power_acpi_cpufreq_init()
260 pi->lcore_id = lcore_id; in power_acpi_cpufreq_init()
271 "lcore %u\n", lcore_id); in power_acpi_cpufreq_init()
285 "to max\n", lcore_id); in power_acpi_cpufreq_init()
345 "original\n", lcore_id); in power_acpi_cpufreq_exit()
517 lcore_id); in power_acpi_enable_turbo()
525 lcore_id); in power_acpi_enable_turbo()
[all …]
H A Dpower_kvm_vm.c24 power_kvm_vm_init(unsigned int lcore_id) in power_kvm_vm_init() argument
26 if (lcore_id >= RTE_MAX_LCORE) { in power_kvm_vm_init()
28 lcore_id, RTE_MAX_LCORE-1); in power_kvm_vm_init()
31 pkt[lcore_id].command = RTE_POWER_CPU_POWER; in power_kvm_vm_init()
32 pkt[lcore_id].resource_id = lcore_id; in power_kvm_vm_init()
37 power_kvm_vm_exit(unsigned int lcore_id) in power_kvm_vm_exit() argument
39 guest_channel_host_disconnect(lcore_id); in power_kvm_vm_exit()
75 if (lcore_id >= RTE_MAX_LCORE) { in send_msg()
77 lcore_id, RTE_MAX_LCORE-1); in send_msg()
80 pkt[lcore_id].unit = scale_direction; in send_msg()
[all …]
H A Dpower_cppc_cpufreq.c120 pi->lcore_id); in power_check_turbo()
128 pi->lcore_id); in power_check_turbo()
136 pi->lcore_id); in power_check_turbo()
207 pi->lcore_id); in power_get_available_freqs()
215 pi->lcore_id); in power_get_available_freqs()
358 "in use\n", lcore_id); in power_cppc_cpufreq_init()
362 pi->lcore_id = lcore_id; in power_cppc_cpufreq_init()
387 "to max\n", lcore_id); in power_cppc_cpufreq_init()
619 lcore_id); in power_cppc_enable_turbo()
630 lcore_id); in power_cppc_enable_turbo()
[all …]
H A Dpower_pstate_cpufreq.c125 pi->lcore_id); in power_init_for_setting_freq()
133 pi->lcore_id); in power_init_for_setting_freq()
141 pi->lcore_id); in power_init_for_setting_freq()
149 pi->lcore_id); in power_init_for_setting_freq()
252 pi->lcore_id); in set_freq_internal()
361 pi->lcore_id); in power_get_available_freqs()
369 pi->lcore_id); in power_get_available_freqs()
459 pi->lcore_id); in power_get_cur_idx()
531 pi->lcore_id = lcore_id; in power_pstate_cpufreq_init()
798 lcore_id); in power_pstate_enable_turbo()
[all …]
H A Dguest_channel.c62 lcore_id, RTE_MAX_LCORE-1); in guest_channel_host_connect()
68 lcore_id, global_fds[lcore_id]); in guest_channel_host_connect()
74 fd_path, lcore_id); in guest_channel_host_connect()
102 global_fds[lcore_id] = fd; in guest_channel_host_connect()
115 global_fds[lcore_id] = -1; in guest_channel_host_connect()
121 unsigned int lcore_id) in guest_channel_send_msg() argument
152 unsigned int lcore_id) in rte_power_guest_channel_send_msg() argument
159 unsigned int lcore_id) in power_guest_channel_read_msg() argument
214 unsigned int lcore_id) in rte_power_guest_channel_receive_msg() argument
229 close(global_fds[lcore_id]); in guest_channel_host_disconnect()
[all …]
H A Dpower_kvm_vm.h35 int power_kvm_vm_init(unsigned int lcore_id);
47 int power_kvm_vm_exit(unsigned int lcore_id);
76 uint32_t power_kvm_vm_get_freq(unsigned int lcore_id);
105 int power_kvm_vm_freq_up(unsigned int lcore_id);
119 int power_kvm_vm_freq_down(unsigned int lcore_id);
133 int power_kvm_vm_freq_max(unsigned int lcore_id);
147 int power_kvm_vm_freq_min(unsigned int lcore_id);
158 int power_kvm_vm_turbo_status(unsigned int lcore_id);
170 int power_kvm_vm_enable_turbo(unsigned int lcore_id);
182 int power_kvm_vm_disable_turbo(unsigned int lcore_id);
[all …]
H A Dpower_pstate_cpufreq.h37 int power_pstate_cpufreq_init(unsigned int lcore_id);
50 int power_pstate_cpufreq_exit(unsigned int lcore_id);
83 uint32_t power_pstate_cpufreq_get_freq(unsigned int lcore_id);
115 int power_pstate_cpufreq_freq_up(unsigned int lcore_id);
130 int power_pstate_cpufreq_freq_down(unsigned int lcore_id);
145 int power_pstate_cpufreq_freq_max(unsigned int lcore_id);
160 int power_pstate_cpufreq_freq_min(unsigned int lcore_id);
174 int power_pstate_turbo_status(unsigned int lcore_id);
187 int power_pstate_enable_turbo(unsigned int lcore_id);
200 int power_pstate_disable_turbo(unsigned int lcore_id);
[all …]
H A Dpower_acpi_cpufreq.h37 int power_acpi_cpufreq_init(unsigned int lcore_id);
50 int power_acpi_cpufreq_exit(unsigned int lcore_id);
83 uint32_t power_acpi_cpufreq_get_freq(unsigned int lcore_id);
115 int power_acpi_cpufreq_freq_up(unsigned int lcore_id);
130 int power_acpi_cpufreq_freq_down(unsigned int lcore_id);
145 int power_acpi_cpufreq_freq_max(unsigned int lcore_id);
160 int power_acpi_cpufreq_freq_min(unsigned int lcore_id);
174 int power_acpi_turbo_status(unsigned int lcore_id);
187 int power_acpi_enable_turbo(unsigned int lcore_id);
200 int power_acpi_disable_turbo(unsigned int lcore_id);
[all …]
H A Dpower_cppc_cpufreq.h38 int power_cppc_cpufreq_init(unsigned int lcore_id);
51 int power_cppc_cpufreq_exit(unsigned int lcore_id);
84 uint32_t power_cppc_cpufreq_get_freq(unsigned int lcore_id);
116 int power_cppc_cpufreq_freq_up(unsigned int lcore_id);
131 int power_cppc_cpufreq_freq_down(unsigned int lcore_id);
146 int power_cppc_cpufreq_freq_max(unsigned int lcore_id);
161 int power_cppc_cpufreq_freq_min(unsigned int lcore_id);
175 int power_cppc_turbo_status(unsigned int lcore_id);
188 int power_cppc_enable_turbo(unsigned int lcore_id);
201 int power_cppc_disable_turbo(unsigned int lcore_id);
[all …]
H A Drte_power_empty_poll.c346 poll_stats->lcore_id); in empty_poll_training()
466 if (lcore_id >= NUM_NODES) in rte_power_empty_poll_stat_update()
471 if (poll_stats->lcore_id == 0) in rte_power_empty_poll_stat_update()
472 poll_stats->lcore_id = lcore_id; in rte_power_empty_poll_stat_update()
485 if (lcore_id >= NUM_NODES) in rte_power_poll_stat_update()
490 if (poll_stats->lcore_id == 0) in rte_power_poll_stat_update()
491 poll_stats->lcore_id = lcore_id; in rte_power_poll_stat_update()
504 if (lcore_id >= NUM_NODES) in rte_power_empty_poll_stat_fetch()
510 poll_stats->lcore_id = lcore_id; in rte_power_empty_poll_stat_fetch()
520 if (lcore_id >= NUM_NODES) in rte_power_poll_stat_fetch()
[all …]
H A Drte_power.c159 rte_power_init(unsigned int lcore_id) in rte_power_init() argument
165 return power_acpi_cpufreq_init(lcore_id); in rte_power_init()
167 return power_kvm_vm_init(lcore_id); in rte_power_init()
171 return power_cppc_cpufreq_init(lcore_id); in rte_power_init()
178 ret = power_acpi_cpufreq_init(lcore_id); in rte_power_init()
185 ret = power_pstate_cpufreq_init(lcore_id); in rte_power_init()
192 ret = power_cppc_cpufreq_init(lcore_id); in rte_power_init()
199 ret = power_kvm_vm_init(lcore_id); in rte_power_init()
205 "%u\n", lcore_id); in rte_power_init()
211 rte_power_exit(unsigned int lcore_id) in rte_power_exit() argument
[all …]
/dpdk/examples/timer/
H A Dmain.c31 unsigned lcore_id = rte_lcore_id(); in timer0_cb() local
33 printf("%s() on lcore %u\n", __func__, lcore_id); in timer0_cb()
47 unsigned lcore_id = rte_lcore_id(); in timer1_cb() local
50 printf("%s() on lcore %u\n", __func__, lcore_id); in timer1_cb()
54 lcore_id = rte_get_next_lcore(lcore_id, 0, 1); in timer1_cb()
63 unsigned lcore_id; in lcore_mainloop() local
65 lcore_id = rte_lcore_id(); in lcore_mainloop()
91 unsigned lcore_id; in main() local
111 lcore_id = rte_lcore_id(); in main()
115 lcore_id = rte_get_next_lcore(lcore_id, 0, 1); in main()
[all …]
/dpdk/examples/vm_power_manager/guest_cli/
H A Dvm_power_cli_guest.c115 unsigned lcore_id; in cmd_quit_parsed() local
157 unsigned int lcore_id) in receive_freq_list() argument
163 lcore_id); in receive_freq_list()
181 unsigned int lcore_id; in cmd_query_freq_list_parsed() local
237 lcore_id, in cmd_query_freq_list_parsed()
267 unsigned int lcore_id) in receive_capabilities() argument
273 lcore_id); in receive_capabilities()
291 unsigned int lcore_id; in cmd_query_caps_list_parsed() local
352 lcore_id, in cmd_query_caps_list_parsed()
404 uint8_t lcore_id; member
[all …]
/dpdk/app/test/
H A Dtest_timer.c143 unsigned lcore_id = rte_lcore_id(); in timer_stress_cb() local
168 unsigned lcore_id = rte_lcore_id(); in timer_stress_main_loop() local
184 lcore_id = rte_get_next_lcore(lcore_id, 0, 1); in timer_stress_main_loop()
197 lcore_id = rte_lcore_id(); in timer_stress_main_loop()
243 unsigned lcore_id = rte_lcore_id(); in worker_wait_to_start() local
252 unsigned lcore_id = rte_lcore_id(); in worker_finish() local
282 if (lcore_id == main_lcore) { in timer_stress2_main_loop()
319 if (lcore_id == main_lcore) { in timer_stress2_main_loop()
326 if (lcore_id == main_lcore) { in timer_stress2_main_loop()
369 if (lcore_id == main_lcore) { in timer_stress2_main_loop()
[all …]
H A Dtest_per_lcore.c49 unsigned lcore_id = rte_lcore_id(); in display_vars() local
51 unsigned socket_id = rte_lcore_to_socket_id(lcore_id); in display_vars()
53 printf("on socket %u, on core %u, variable is %u\n", socket_id, lcore_id, var); in display_vars()
54 if (lcore_id != var) in display_vars()
73 unsigned lcore_id; in test_per_lcore() local
77 RTE_LCORE_FOREACH_WORKER(lcore_id) { in test_per_lcore()
78 if (rte_eal_wait_lcore(lcore_id) < 0) in test_per_lcore()
83 RTE_LCORE_FOREACH_WORKER(lcore_id) { in test_per_lcore()
84 if (rte_eal_wait_lcore(lcore_id) < 0) in test_per_lcore()
100 RTE_LCORE_FOREACH_WORKER(lcore_id) { in test_per_lcore()
[all …]
/dpdk/drivers/net/sfc/
H A Dsfc_service.c33 uint32_t lcore_id; in sfc_find_service_lcore() local
51 lcore_id = service_core_list[i]; in sfc_find_service_lcore()
56 } else if (rte_lcore_to_socket_id(lcore_id) == in sfc_find_service_lcore()
68 return lcore_id; in sfc_find_service_lcore()
74 uint32_t lcore_id = RTE_MAX_LCORE; in sfc_get_service_lcore() local
79 lcore_id = sfc_service_lcore[socket_id]; in sfc_get_service_lcore()
85 lcore_id = sfc_service_lcore[i]; in sfc_get_service_lcore()
91 if (lcore_id == RTE_MAX_LCORE) { in sfc_get_service_lcore()
93 if (lcore_id != RTE_MAX_LCORE) in sfc_get_service_lcore()
94 sfc_service_lcore[socket_id] = lcore_id; in sfc_get_service_lcore()
[all …]
/dpdk/lib/timer/
H A Drte_timer.c134 int i, lcore_id; in rte_timer_subsystem_init() local
168 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; in rte_timer_subsystem_init()
169 lcore_id++) { in rte_timer_subsystem_init()
173 lcore_id; in rte_timer_subsystem_init()
229 unsigned lcore_id; in timer_set_config_state() local
231 lcore_id = rte_lcore_id(); in timer_set_config_state()
482 if (lcore_id < RTE_MAX_LCORE) { in __rte_timer_reset()
502 lcore_id < RTE_MAX_LCORE) { in __rte_timer_reset()
600 lcore_id < RTE_MAX_LCORE) { in __rte_timer_stop()
1044 unsigned lcore_id; in __rte_timer_dump_stats() local
[all …]
/dpdk/examples/l3fwd-power/
H A Dmain.c952 lcore_id); in main_intr_loop()
1115 lcore_id); in main_telemetry_loop()
1120 lcore_id); in main_telemetry_loop()
1231 lcore_id); in main_empty_poll_loop()
2126 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in init_mem()
2391 lcore_id, in telemetry_setup_timer()
2408 lcore_id, in empty_poll_setup_timer()
2695 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in main()
2713 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in main()
2748 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in main()
[all …]
/dpdk/examples/eventdev_pipeline/
H A Dmain.c29 if (fdata->rx_core[lcore_id]) in dump_core_info()
32 __func__, lcore_id); in dump_core_info()
34 if (fdata->tx_core[lcore_id]) in dump_core_info()
37 __func__, lcore_id); in dump_core_info()
42 __func__, lcore_id); in dump_core_info()
47 __func__, lcore_id, in dump_core_info()
53 return (fdata->rx_core[lcore_id] || fdata->sched_core[lcore_id] || in core_in_use()
54 fdata->tx_core[lcore_id] || fdata->worker_core[lcore_id]); in core_in_use()
345 int lcore_id; in main() local
436 lcore_id); in main()
[all …]
/dpdk/lib/eal/include/
H A Drte_lcore.h46 enum rte_lcore_role_t rte_eal_lcore_role(unsigned int lcore_id);
60 rte_lcore_has_role(unsigned int lcore_id, enum rte_lcore_role_t role);
111 int rte_lcore_index(int lcore_id);
160 rte_lcore_to_socket_id(unsigned int lcore_id);
175 rte_lcore_to_cpu_id(int lcore_id);
191 rte_lcore_cpuset(unsigned int lcore_id);
204 int rte_lcore_is_enabled(unsigned int lcore_id);
248 typedef int (*rte_lcore_init_cb)(unsigned int lcore_id, void *arg);
258 typedef void (*rte_lcore_uninit_cb)(unsigned int lcore_id, void *arg);
316 typedef int (*rte_lcore_iterate_cb)(unsigned int lcore_id, void *arg);
/dpdk/examples/l3fwd-graph/
H A Dmain.c100 uint8_t lcore_id; member
527 uint32_t lcore_id; in init_mem() local
531 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in init_mem()
679 uint32_t lcore_id; in graph_main_loop() local
689 lcore_id); in graph_main_loop()
891 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in main()
899 lcore_id); in main()
933 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in main()
948 lcore_id); in main()
1031 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { in main()
[all …]
/dpdk/lib/eal/linux/
H A Deal_lcore.c20 eal_cpu_detected(unsigned lcore_id) in eal_cpu_detected() argument
24 "/"CORE_ID_FILE, lcore_id); in eal_cpu_detected()
41 eal_cpu_socket_id(unsigned lcore_id) in eal_cpu_socket_id() argument
49 socket, lcore_id); in eal_cpu_socket_id()
58 eal_cpu_core_id(unsigned lcore_id) in eal_cpu_core_id() argument
63 int len = snprintf(path, sizeof(path), SYS_CPU_DIR "/%s", lcore_id, CORE_ID_FILE); in eal_cpu_core_id()
72 "for lcore %u - assuming core 0\n", SYS_CPU_DIR, lcore_id); in eal_cpu_core_id()

123456