| /f-stack/dpdk/lib/librte_eal/common/ |
| H A D | rte_service.c | 492 if (lcore >= RTE_MAX_LCORE || !lcore_states[lcore].is_service_core) in rte_service_lcore_may_be_active() 538 if (lcore >= RTE_MAX_LCORE) in rte_service_lcore_count_services() 595 lcore >= RTE_MAX_LCORE || !lcore_states[lcore].is_service_core) in service_update() 679 if (lcore >= RTE_MAX_LCORE) in rte_service_lcore_add() 700 if (lcore >= RTE_MAX_LCORE) in rte_service_lcore_del() 724 if (lcore >= RTE_MAX_LCORE) in rte_service_lcore_start() 755 if (lcore >= RTE_MAX_LCORE) in rte_service_lcore_stop() 822 cs = &lcore_states[lcore]; in rte_service_lcore_attr_get() 851 if (lcore >= RTE_MAX_LCORE) in rte_service_lcore_attr_reset_all() 854 cs = &lcore_states[lcore]; in rte_service_lcore_attr_reset_all() [all …]
|
| /f-stack/dpdk/examples/performance-thread/l3fwd-thread/ |
| H A D | test.sh | 17 --stat-lcore 2 \ 29 --stat-lcore 4 \ 40 --stat-lcore 8 \ 51 --stat-lcore 16 \ 67 --stat-lcore 2 \ 79 --stat-lcore 4 \ 90 --stat-lcore 8 \ 117 --stat-lcore 1 127 --stat-lcore 1 137 --stat-lcore 1 [all …]
|
| /f-stack/dpdk/app/test-pipeline/ |
| H A D | main.c | 48 uint32_t lcore; in main() local 70 RTE_LCORE_FOREACH_WORKER(lcore) { in main() 71 if (rte_eal_wait_lcore(lcore) < 0) in main() 81 unsigned lcore; in app_lcore_main_loop() local 83 lcore = rte_lcore_id(); in app_lcore_main_loop() 85 if (lcore == app.core_rx) { in app_lcore_main_loop() 97 if (lcore == app.core_worker) { in app_lcore_main_loop() 151 if (lcore == app.core_tx) { in app_lcore_main_loop()
|
| /f-stack/dpdk/app/test/ |
| H A D | autotest_test_funcs.py | 290 lcore_tim0 = lcore 293 % (lcore, lcore_tim0) 299 if lcore == lcore_tim1: 301 % (lcore, lcore_tim1) 302 lcore_tim1 = lcore 309 lcore_tim2 = lcore 310 elif lcore != lcore_tim2: 312 % (lcore, lcore_tim2) 319 lcore_tim3 = lcore 320 elif lcore != lcore_tim3: [all …]
|
| H A D | test_ticketlock.c | 111 const unsigned int lcore = rte_lcore_id(); in load_loop_fn() local 114 if (lcore != rte_get_main_lcore()) in load_loop_fn() 119 while (lcore_count[lcore] < MAX_LOOP) { in load_loop_fn() 122 lcore_count[lcore]++; in load_loop_fn() 128 time_cost[lcore] = time_diff * 1000000 / hz; in load_loop_fn() 139 const unsigned int lcore = rte_lcore_id(); in test_ticketlock_perf() local 143 printf("Core [%u] cost time = %"PRIu64" us\n", lcore, time_cost[lcore]); in test_ticketlock_perf() 150 printf("Core [%u] cost time = %"PRIu64" us\n", lcore, time_cost[lcore]); in test_ticketlock_perf()
|
| H A D | test_mcslock.c | 77 const unsigned int lcore = rte_lcore_id(); in load_loop_fn() local 96 time_count[lcore] = time_diff * 1000000 / hz; in load_loop_fn() 106 const unsigned int lcore = rte_lcore_id(); in test_mcslock_perf() local 112 lcore, time_count[lcore]); in test_mcslock_perf() 120 lcore, time_count[lcore]); in test_mcslock_perf()
|
| H A D | test_spinlock.c | 110 const unsigned lcore = rte_lcore_id(); in load_loop_fn() local 113 if (lcore != rte_get_main_lcore()) in load_loop_fn() 125 time_count[lcore] = time_diff * 1000000 / hz; in load_loop_fn() 135 const unsigned lcore = rte_lcore_id(); in test_spinlock_perf() local 139 printf("Core [%u] Cost Time = %"PRIu64" us\n", lcore, in test_spinlock_perf() 140 time_count[lcore]); in test_spinlock_perf() 146 printf("Core [%u] Cost Time = %"PRIu64" us\n", lcore, in test_spinlock_perf() 147 time_count[lcore]); in test_spinlock_perf()
|
| /f-stack/dpdk/lib/librte_eal/include/ |
| H A D | rte_service.h | 124 int32_t rte_service_map_lcore_set(uint32_t service_id, uint32_t lcore, 137 int32_t rte_service_map_lcore_get(uint32_t service_id, uint32_t lcore); 295 int32_t rte_service_lcore_add(uint32_t lcore); 306 int32_t rte_service_lcore_del(uint32_t lcore); 372 int32_t rte_service_lcore_count_services(uint32_t lcore); 427 rte_service_lcore_attr_get(uint32_t lcore, uint32_t attr_id, 439 rte_service_lcore_attr_reset_all(uint32_t lcore);
|
| /f-stack/dpdk/doc/guides/sample_app_ug/ |
| H A D | ip_frag.rst | 62 * -q NQ is the number of queue (=ports) per lcore (the default is 1) 70 EAL: Detected lcore 0 on socket 0 71 EAL: Detected lcore 1 on socket 1 72 EAL: Detected lcore 2 on socket 0 73 EAL: Detected lcore 3 on socket 1 74 EAL: Detected lcore 4 on socket 0 77 Initializing port 0 on lcore 2... Address:00:1B:21:76:FA:2C, rxq=0 txq=2,0 txq=4,1 80 Initializing port 2 on lcore 4... Address:00:1B:21:5C:FF:54, rxq=0 txq=2,0 txq=4,1 88 IP_FRAG: entering main loop on lcore 4 90 IP_FRAG: entering main loop on lcore 2 [all …]
|
| H A D | timer.rst | 52 executed on each worker lcore using the well-known 57 /* call lcore_mainloop() on every worker lcore */ 62 /* call it on main lcore too */ 89 As explained in the comment, it is better to use the TSC register (as it is a per-lcore register) t… 108 * The first timer (timer0) is loaded on the main lcore and expires every second. 112 * The second timer (timer1) is loaded on the next available lcore every 333 ms. 118 /* load timer0, every second, on main lcore, reloaded automatically */ 126 /* load timer1, every second/3, on next lcore, reloaded manually */ 146 printf("%s() on lcore %u\n", FUNCTION , lcore_id); 167 printf("%s() on lcore %u\\n", FUNCTION , lcore_id); [all …]
|
| H A D | vhost_crypto.rst | 32 --config (lcore,cdev-id,queue-id)[,(lcore,cdev-id,queue-id)] 33 --socket-file lcore,PATH 39 * config (lcore,cdev-id,queue-id): build the lcore-cryptodev id-queue id 40 connection. Once specified, the specified lcore will only work with 43 * socket-file lcore,PATH: the path of UNIX socket file to be created and 44 the lcore id that will deal with the all workloads of the socket. Multiple 45 instances of this config item is supported and one lcore supports processing
|
| H A D | l3_forward_graph.rst | 20 and configuration per lcore. 49 --config(port,queue,lcore)[,(port,queue,lcore)] 62 * ``--config (port,queue,lcore)[,(port,queue,lcore)]:`` Determines which queues from which ports ar… 94 | **Port** | **Queue** | **lcore** | **Description** | 145 /* Init one TX queue per couple (lcore,port) */ 190 A graph object returned after graph creation is a per lcore object and 215 /* Create a graph object per lcore with common nodes and 216 * lcore specific nodes based on application arguments 226 /* Common set of nodes in every lcore's graph object */ 236 /* Add rx node patterns of this lcore based on --config */ [all …]
|
| H A D | hello_world.rst | 8 The application simply prints an "helloworld" message on every enabled lcore. 58 Once the EAL is initialized, the application is ready to launch a function on an lcore. 59 In this example, lcore_hello() is called on every available lcore. 74 The code that launches the function on each lcore is as follows: 78 /* call lcore_hello() on every worker lcore */ 84 /* call it on main lcore too */
|
| H A D | ip_reassembly.rst | 51 * -q NQ: Number of RX queues per lcore 66 EAL: Detected lcore 0 on socket 0 67 EAL: Detected lcore 1 on socket 1 68 EAL: Detected lcore 2 on socket 0 69 EAL: Detected lcore 3 on socket 1 70 EAL: Detected lcore 4 on socket 0 86 IP_RSMBL: entering main loop on lcore 4 88 IP_RSMBL: entering main loop on lcore 2 91 To run the example in linux environment with 1 lcore (4) over 2 ports(0,2) with 2 RX queues per lco… 162 …LOG(ERR, IP_RSMBL, "ip_frag_tbl_create(%u) on " "lcore: %u for queue: %u failed\n", max_flow_num,… [all …]
|
| H A D | kernel_nic_interface.rst | 141 The optional ``lcore_kthread`` lcore ID parameter in ``--config`` can be 149 will be created for each lcore ID specified, bound to the physical port 155 thread will be bound to the first ``lcore_kthread`` lcore ID specified. 163 Rx task, lcore 6 for the Tx task, and will create a single KNI interface 164 ``vEth0_0`` with the kernel thread bound to lcore 8. Port 1 uses lcore 166 interface ``vEth1_0`` with the kernel thread bound to lcore 9. 181 * ``vEth0_0`` - bound to lcore 8. 182 * ``vEth0_1`` - bound to lcore 10. 183 * ``vEth1_0`` - bound to lcore 9. 184 * ``vEth1_1`` - bound to lcore 11 [all …]
|
| /f-stack/dpdk/examples/l3fwd-power/ |
| H A D | perf_core.c | 32 is_hp_core(unsigned int lcore) in is_hp_core() argument 42 ret = rte_power_get_capabilities(lcore, &caps); in is_hp_core() 84 int lcore = -1; in update_lcore_params() local 87 lcore = hp_lcores[prf_lc_prms[i].lcore_idx]; in update_lcore_params() 90 lcore = in update_lcore_params() 94 if (lcore < 0) { in update_lcore_params() 99 lcore_params_array[i].lcore_id = lcore; in update_lcore_params()
|
| /f-stack/dpdk/doc/guides/prog_guide/ |
| H A D | glossary.rst | 102 lcore 127 main lcore 131 master lcore 132 Deprecated name for *main lcore*. No longer used. 190 Slave lcore 191 Deprecated name for *worker lcore*. No longer used. 243 Worker lcore 244 Any *lcore* that is not the *main lcore*.
|
| H A D | power_man.rst | 21 The Linux kernel provides a cpufreq module for CPU frequency scaling for each lcore. 61 Core state can be altered by speculative sleeps whenever the specified lcore has nothing to do. 86 * **Freq up**: Prompt the kernel to scale up the frequency of the specific lcore. 88 * **Freq down**: Prompt the kernel to scale down the frequency of the specific lcore. 90 * **Freq max**: Prompt the kernel to scale up the frequency of the specific lcore to the maximum. 92 * **Freq min**: Prompt the kernel to scale down the frequency of the specific lcore to the minimu… 94 * **Get available freqs**: Read the available frequencies of the specific lcore from the sys file. 96 * **Freq get**: Get the current frequency of the specific lcore. 98 * **Freq set**: Prompt the kernel to set the frequency for the specific lcore. 100 * **Enable turbo**: Prompt the kernel to enable Turbo Boost for the specific lcore. [all …]
|
| /f-stack/dpdk/app/test-flow-perf/ |
| H A D | main.c | 1154 int lcore = rte_lcore_id(); in start_forwarding() local 1188 unsigned int lcore; in init_lcore_info() local 1199 lcore = rte_get_next_lcore(-1, 0, 0); in init_lcore_info() 1200 lcore_infos[lcore].mode = LCORE_MODE_STATS; in init_lcore_info() 1226 lcore = rte_get_next_lcore(lcore, 0, 0); in init_lcore_info() 1227 lcore_infos[lcore].streams_nb = 1; in init_lcore_info() 1233 lcore = rte_get_next_lcore(lcore, 0, 0); in init_lcore_info() 1236 lcore_infos[lcore].streams_nb++; in init_lcore_info() 1250 lcore = rte_get_next_lcore(-1, 0, 0); in init_lcore_info() 1254 if (!lcore_infos[lcore].streams_nb || in init_lcore_info() [all …]
|
| /f-stack/dpdk/lib/librte_eal/windows/ |
| H A D | eal_lcore.c | 88 struct lcore_map *lcore; in eal_create_cpu_map() local 121 lcore = &cpu_map.lcores[cpu_map.lcore_count]; in eal_create_cpu_map() 122 lcore->socket_id = socket_id; in eal_create_cpu_map() 123 lcore->core_id = in eal_create_cpu_map()
|
| /f-stack/dpdk/examples/l3fwd-graph/ |
| H A D | main.c | 153 uint8_t queue, lcore; in check_lcore_params() local 163 lcore = lcore_params[i].lcore_id; in check_lcore_params() 164 if (!rte_lcore_is_enabled(lcore)) { in check_lcore_params() 166 lcore); in check_lcore_params() 170 if (lcore == rte_get_main_lcore()) { in check_lcore_params() 174 socketid = rte_lcore_to_socket_id(lcore); in check_lcore_params() 177 lcore, socketid); in check_lcore_params() 230 uint8_t lcore; in init_lcore_rx_queues() local 233 lcore = lcore_params[i].lcore_id; in init_lcore_rx_queues() 238 (unsigned int)lcore); in init_lcore_rx_queues() [all …]
|
| /f-stack/dpdk/examples/performance-thread/common/ |
| H A D | lthread_api.h | 174 void lthread_scheduler_shutdown(unsigned lcore); 229 int lcore, lthread_func_t func, void *arg); 351 int lthread_set_affinity(unsigned lcore);
|
| /f-stack/dpdk/drivers/bus/dpaa/ |
| H A D | dpaa_bus.c | 263 unsigned int cpu, lcore = rte_lcore_id(); in rte_dpaa_portal_init() local 268 if ((size_t)arg == 1 || lcore == LCORE_ID_ANY) in rte_dpaa_portal_init() 269 lcore = rte_get_main_lcore(); in rte_dpaa_portal_init() 271 if (lcore >= RTE_MAX_LCORE) in rte_dpaa_portal_init() 274 cpu = rte_lcore_to_cpu_id(lcore); in rte_dpaa_portal_init() 287 " (lcore=%u) with ret: %d", cpu, lcore, ret); in rte_dpaa_portal_init() 292 cpu, lcore); in rte_dpaa_portal_init() 298 " (lcore=%u) with ret: %d", cpu, lcore, ret); in rte_dpaa_portal_init() 304 cpu, lcore); in rte_dpaa_portal_init() 323 " (lcore=%u) with ret: %d", cpu, lcore, ret); in rte_dpaa_portal_init()
|
| /f-stack/dpdk/examples/ip_reassembly/ |
| H A D | main.c | 823 setup_port_tbl(struct lcore_queue_conf *qconf, uint32_t lcore, int socket, in setup_port_tbl() argument 837 __func__, lcore, port, sz); in setup_port_tbl() 848 setup_queue_tbl(struct rx_queue *rxq, uint32_t lcore, uint32_t queue) in setup_queue_tbl() argument 855 socket = rte_lcore_to_socket_id(lcore); in setup_queue_tbl() 867 max_flow_num, lcore, queue); in setup_queue_tbl() 884 snprintf(buf, sizeof(buf), "mbuf_pool_%u_%u", lcore, queue); in setup_queue_tbl() 954 uint32_t i, lcore; in queue_dump_stat() local 957 for (lcore = 0; lcore < RTE_MAX_LCORE; lcore++) { in queue_dump_stat() 958 if (rte_lcore_is_enabled(lcore) == 0) in queue_dump_stat() 961 qconf = &lcore_queue_conf[lcore]; in queue_dump_stat() [all …]
|
| /f-stack/dpdk/examples/l3fwd/ |
| H A D | main.c | 184 uint8_t queue, lcore; in check_lcore_params() local 194 lcore = lcore_params[i].lcore_id; in check_lcore_params() 195 if (!rte_lcore_is_enabled(lcore)) { in check_lcore_params() 199 if ((socketid = rte_lcore_to_socket_id(lcore) != 0) && in check_lcore_params() 202 lcore, socketid); in check_lcore_params() 251 uint8_t lcore; in init_lcore_rx_queues() local 254 lcore = lcore_params[i].lcore_id; in init_lcore_rx_queues() 255 nb_rx_queue = lcore_conf[lcore].n_rx_queue; in init_lcore_rx_queues() 258 (unsigned)nb_rx_queue + 1, (unsigned)lcore); in init_lcore_rx_queues() 261 lcore_conf[lcore].rx_queue_list[nb_rx_queue].port_id = in init_lcore_rx_queues() [all …]
|