Home
last modified time | relevance | path

Searched refs:lcore (Results 1 – 25 of 116) sorted by relevance

12345

/dpdk/lib/eal/common/
H A Drte_service.c486 if (lcore >= RTE_MAX_LCORE || !lcore_states[lcore].is_service_core) in rte_service_lcore_may_be_active()
532 if (lcore >= RTE_MAX_LCORE) in rte_service_lcore_count_services()
589 lcore >= RTE_MAX_LCORE || !lcore_states[lcore].is_service_core) in service_update()
673 if (lcore >= RTE_MAX_LCORE) in rte_service_lcore_add()
694 if (lcore >= RTE_MAX_LCORE) in rte_service_lcore_del()
718 if (lcore >= RTE_MAX_LCORE) in rte_service_lcore_start()
749 if (lcore >= RTE_MAX_LCORE) in rte_service_lcore_stop()
816 cs = &lcore_states[lcore]; in rte_service_lcore_attr_get()
845 if (lcore >= RTE_MAX_LCORE) in rte_service_lcore_attr_reset_all()
848 cs = &lcore_states[lcore]; in rte_service_lcore_attr_reset_all()
[all …]
/dpdk/app/test-pipeline/
H A Dmain.c47 uint32_t lcore; in main() local
69 RTE_LCORE_FOREACH_WORKER(lcore) { in main()
70 if (rte_eal_wait_lcore(lcore) < 0) in main()
80 unsigned lcore; in app_lcore_main_loop() local
82 lcore = rte_lcore_id(); in app_lcore_main_loop()
84 if (lcore == app.core_rx) { in app_lcore_main_loop()
96 if (lcore == app.core_worker) { in app_lcore_main_loop()
150 if (lcore == app.core_tx) { in app_lcore_main_loop()
/dpdk/app/test/
H A Dtest_ticketlock.c110 const unsigned int lcore = rte_lcore_id(); in load_loop_fn() local
113 if (lcore != rte_get_main_lcore()) in load_loop_fn()
117 while (lcore_count[lcore] < MAX_LOOP) { in load_loop_fn()
120 lcore_count[lcore]++; in load_loop_fn()
126 time_cost[lcore] = time_diff * 1000000 / hz; in load_loop_fn()
137 const unsigned int lcore = rte_lcore_id(); in test_ticketlock_perf() local
141 printf("Core [%u] cost time = %"PRIu64" us\n", lcore, time_cost[lcore]); in test_ticketlock_perf()
148 printf("Core [%u] cost time = %"PRIu64" us\n", lcore, time_cost[lcore]); in test_ticketlock_perf()
H A Dtest_pflock.c68 const unsigned int lcore = rte_lcore_id(); in load_loop_fn() local
71 if (lcore != rte_get_main_lcore()) in load_loop_fn()
89 time_count[lcore] = time_diff * 1000000 / hz; in load_loop_fn()
99 const unsigned int lcore = rte_lcore_id(); in test_pflock_perf() local
105 lcore, time_count[lcore]); in test_pflock_perf()
113 lcore, time_count[lcore]); in test_pflock_perf()
H A Dtest_mcslock.c72 const unsigned int lcore = rte_lcore_id(); in load_loop_fn() local
90 time_count[lcore] = time_diff * 1000000 / hz; in load_loop_fn()
100 const unsigned int lcore = rte_lcore_id(); in test_mcslock_perf() local
106 lcore, time_count[lcore]); in test_mcslock_perf()
114 lcore, time_count[lcore]); in test_mcslock_perf()
H A Dtest_spinlock.c109 const unsigned lcore = rte_lcore_id(); in load_loop_fn() local
112 if (lcore != rte_get_main_lcore()) in load_loop_fn()
124 time_count[lcore] = time_diff * 1000000 / hz; in load_loop_fn()
134 const unsigned lcore = rte_lcore_id(); in test_spinlock_perf() local
138 printf("Core [%u] Cost Time = %"PRIu64" us\n", lcore, in test_spinlock_perf()
139 time_count[lcore]); in test_spinlock_perf()
145 printf("Core [%u] Cost Time = %"PRIu64" us\n", lcore, in test_spinlock_perf()
146 time_count[lcore]); in test_spinlock_perf()
/dpdk/lib/eal/include/
H A Drte_service.h120 int32_t rte_service_map_lcore_set(uint32_t service_id, uint32_t lcore,
133 int32_t rte_service_map_lcore_get(uint32_t service_id, uint32_t lcore);
291 int32_t rte_service_lcore_add(uint32_t lcore);
302 int32_t rte_service_lcore_del(uint32_t lcore);
366 int32_t rte_service_lcore_count_services(uint32_t lcore);
421 rte_service_lcore_attr_get(uint32_t lcore, uint32_t attr_id,
433 rte_service_lcore_attr_reset_all(uint32_t lcore);
/dpdk/doc/guides/sample_app_ug/
H A Dip_frag.rst62 * -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 Dhello_world.rst8 The application simply prints an "helloworld" message on every enabled lcore.
52 Once the EAL is initialized, the application is ready to launch a function on an lcore.
53 In this example, lcore_hello() is called on every available lcore.
58 :start-after: Launch a function on lcore. 8<
59 :end-before: >8 End of launching function on lcore.
61 The code that launches the function on each lcore is as follows:
65 :start-after: Launches the function on each lcore. 8<
66 :end-before: >8 End of launching the function on each lcore.
H A Dvhost_crypto.rst32 --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 Dl3_forward_graph.rst20 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…
92 | **Port** | **Queue** | **lcore** | **Description** |
95 | 0 | 0 | 1 | Map queue 0 from port 0 to lcore 1. |
98 | 1 | 0 | 2 | Map queue 0 from port 1 to lcore 2. |
130 ``ip4_rewrite`` will be used in graph creation to associate node's to lcore
143 A graph object returned after graph creation is a per lcore object and
148 the application argument ``--config`` specifying rx queue mapping to lcore.
174 launched on worker lcore.
[all …]
H A Dtimer.rst46 executed on each worker lcore using the well-known
51 :start-after: Call lcore_mainloop() on every worker lcore. 8<
52 :end-before: >8 End of call lcore_mainloop() on every worker lcore.
63 As explained in the comment, it is better to use the TSC register (as it is a per-lcore register) t…
81 * The first timer (timer0) is loaded on the main lcore and expires every second.
85 * The second timer (timer1) is loaded on the next available lcore every 333 ms.
91 :start-after: Load timer0, every second, on main lcore, reloaded automatically. 8<
103 …for the second timer (timer1) displays a message and reloads the timer on the next lcore, using the
H A Dip_reassembly.rst51 * -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
73 Initializing port 0 on lcore 2... Address:00:1B:21:76:FA:2C, rxq=0 txq=2,0 txq=4,1
76 Initializing port 2 on lcore 4... Address:00:1B:21:5C:FF:54, rxq=0 txq=2,0 txq=4,1
86 IP_RSMBL: entering main loop on lcore 4
88 IP_RSMBL: entering main loop on lcore 2
[all …]
H A Dkernel_nic_interface.rst141 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 …]
H A Dskeleton.rst48 threads for each lcore.
83 function on an lcore. In this example ``lcore_main()`` is called on a single
84 lcore.
89 :start-after: Called on single lcore. 8<
90 :end-before: >8 End of called on single lcore.
136 available lcores. For the Basic Forwarding application the lcore function
141 :start-after: Basic forwarding application lcore. 8<
142 :end-before: >8 End Basic forwarding application lcore.
H A Dl2_forward_real_virtual.rst109 * q NQ: A number of queues (=ports) per lcore (default is 1)
123 per lcore, to forward RX traffic of ports 0 & 1 on ports 2 & 3 respectively and
180 A per-lcore cache of 32 mbufs is kept.
205 For each port, there is only one RX queue (only one lcore is able to poll a given port).
220 The application uses one lcore to poll one or several ports, depending on the -q option,
221 which specifies the number of queues per lcore.
223 For example, if the user specifies -q 4, the application is able to poll four ports with one lcore.
237 :start-after: List of queues to be polled for a given lcore. 8<
238 :end-before: >8 End of list of queues to be polled for a given lcore.
248 Each lcore should be able to transmit on any port. For every port, a single TX queue is initialized.
[all …]
/dpdk/examples/l3fwd-power/
H A Dperf_core.c32 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()
/dpdk/doc/guides/prog_guide/
H A Dglossary.rst102 lcore
127 main lcore
131 master lcore
132 Deprecated name for *main lcore*. No longer used.
193 Slave lcore
194 Deprecated name for *worker lcore*. No longer used.
246 Worker lcore
247 Any *lcore* that is not the *main lcore*.
H A Dpower_man.rst21 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.
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.
102 * **Disable turbo**: Prompt the kernel to disable Turbo Boost for the specific lcore.
[all …]
/dpdk/examples/l3fwd-graph/
H A Dmain.c154 uint8_t queue, lcore; in check_lcore_params() local
164 lcore = lcore_params[i].lcore_id; in check_lcore_params()
165 if (!rte_lcore_is_enabled(lcore)) { in check_lcore_params()
167 lcore); in check_lcore_params()
171 if (lcore == rte_get_main_lcore()) { in check_lcore_params()
175 socketid = rte_lcore_to_socket_id(lcore); in check_lcore_params()
178 lcore, socketid); in check_lcore_params()
231 uint8_t lcore; in init_lcore_rx_queues() local
234 lcore = lcore_params[i].lcore_id; in init_lcore_rx_queues()
239 (unsigned int)lcore); in init_lcore_rx_queues()
[all …]
/dpdk/drivers/bus/dpaa/
H A Ddpaa_bus.c303 unsigned int cpu, lcore = rte_lcore_id(); in rte_dpaa_portal_init() local
308 if ((size_t)arg == 1 || lcore == LCORE_ID_ANY) in rte_dpaa_portal_init()
309 lcore = rte_get_main_lcore(); in rte_dpaa_portal_init()
311 if (lcore >= RTE_MAX_LCORE) in rte_dpaa_portal_init()
314 cpu = rte_lcore_to_cpu_id(lcore); in rte_dpaa_portal_init()
327 " (lcore=%u) with ret: %d", cpu, lcore, ret); in rte_dpaa_portal_init()
332 cpu, lcore); in rte_dpaa_portal_init()
338 " (lcore=%u) with ret: %d", cpu, lcore, ret); in rte_dpaa_portal_init()
344 cpu, lcore); in rte_dpaa_portal_init()
363 " (lcore=%u) with ret: %d", cpu, lcore, ret); in rte_dpaa_portal_init()
/dpdk/lib/power/
H A Drte_power_pmd_mgmt.c249 const unsigned int lcore = rte_lcore_id(); in clb_multiwait() local
254 lcore_conf = &lcore_cfgs[lcore]; in clb_multiwait()
314 const unsigned int lcore = rte_lcore_id(); in clb_pause() local
319 lcore_conf = &lcore_cfgs[lcore]; in clb_pause()
354 const unsigned int lcore = rte_lcore_id(); in clb_scale_freq() local
356 struct pmd_core_cfg *lcore_conf = &lcore_cfgs[lcore]; in clb_scale_freq()
411 check_scale(unsigned int lcore) in check_scale() argument
422 if (rte_power_init(lcore)) in check_scale()
/dpdk/app/test-flow-perf/
H A Dmain.c1821 int lcore = rte_lcore_id(); in start_forwarding() local
1855 unsigned int lcore; in init_lcore_info() local
1866 lcore = rte_get_next_lcore(-1, 0, 0); in init_lcore_info()
1867 lcore_infos[lcore].mode = LCORE_MODE_STATS; in init_lcore_info()
1893 lcore = rte_get_next_lcore(lcore, 0, 0); in init_lcore_info()
1894 lcore_infos[lcore].streams_nb = 1; in init_lcore_info()
1900 lcore = rte_get_next_lcore(lcore, 0, 0); in init_lcore_info()
1903 lcore_infos[lcore].streams_nb++; in init_lcore_info()
1917 lcore = rte_get_next_lcore(-1, 0, 0); in init_lcore_info()
1921 if (!lcore_infos[lcore].streams_nb || in init_lcore_info()
[all …]
/dpdk/lib/eal/windows/
H A Deal_lcore.c115 struct lcore_map *lcore; in eal_create_lcore_map() local
144 lcore = &cpu_map.lcores[cpu_map.lcore_count]; in eal_create_lcore_map()
145 lcore->socket_id = socket_id; in eal_create_lcore_map()
146 lcore->core_id = cores->Group * EAL_PROCESSOR_GROUP_SIZE + i; in eal_create_lcore_map()
/dpdk/examples/ip_reassembly/
H A Dmain.c824 setup_port_tbl(struct lcore_queue_conf *qconf, uint32_t lcore, int socket, in setup_port_tbl() argument
838 __func__, lcore, port, sz); in setup_port_tbl()
849 setup_queue_tbl(struct rx_queue *rxq, uint32_t lcore, uint32_t queue) in setup_queue_tbl() argument
856 socket = rte_lcore_to_socket_id(lcore); in setup_queue_tbl()
869 max_flow_num, lcore, queue); in setup_queue_tbl()
889 snprintf(buf, sizeof(buf), "mbuf_pool_%u_%u", lcore, queue); in setup_queue_tbl()
960 uint32_t i, lcore; in queue_dump_stat() local
963 for (lcore = 0; lcore < RTE_MAX_LCORE; lcore++) { in queue_dump_stat()
964 if (rte_lcore_is_enabled(lcore) == 0) in queue_dump_stat()
967 qconf = &lcore_queue_conf[lcore]; in queue_dump_stat()
[all …]

12345