Can a DPDK API like rte_eth_dev_set_mtu be called by a normal pthread
Dmitry Kozlyuk
dmitry.kozliuk at gmail.com
Tue Aug 23 12:22:45 CEST 2022
2022-08-23 11:25 (UTC+0200), Antonio Di Bacco:
> I have a DPDK process that also creates a normal pthread, is there
> anything wrong to call a DPDK api from this normal pthread?
Nothing wrong, this is allowed.
You may be interested in rte_thread_register(),
if you want to consider this thread as an lcore.
Also, rte_socket_id() will return SOCKET_ID_ANY
unless the thread is registered, for example.
More information about the users
mailing list