Can a DPDK API like rte_eth_dev_set_mtu be called by a normal pthread

Antonio Di Bacco a.dibacco.ks at gmail.com
Tue Aug 23 13:57:01 CEST 2022


Thank you, and what if the pthread is launched by a secondary DPDK
process? Should rte_eth_dev_set_mtu be working ?
Because I'm observing a crash.


On Tue, Aug 23, 2022 at 12:22 PM Dmitry Kozlyuk
<dmitry.kozliuk at gmail.com> wrote:
>
> 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