--lcores: what it does and does not do
Stephen Hemminger
stephen at networkplumber.org
Sat Mar 30 23:40:29 CET 2024
On Sat, 30 Mar 2024 17:45:41 -0400
fwefew 4t4tg <7532yahoo at gmail.com> wrote:
> // If program run with --lcores=(1)@2,(2)@4 this loop will
> // create and run two threads lcore 1 pinned to CPU 2 and lcore 2
> // pinned to CPU 4. the output will look like:
> // hello from core 1
> // hello from core 2
> RTE_LCORE_FOREACH_WORKER(lcore_id) {
> rte_eal_remote_launch(lcore_hello, NULL, lcore_id);
> }
> .
You don't need that loop, that is what rte_eal_mp_remote_launch does
with more error checking.
More information about the users
mailing list