I'd like to ask you a question about DPDK multithread packet receiving and sending,The step as follow:
1. call the function rte_eal_init with arguments -l0,2-7.
2.init pkio and memzoon for recv/send queue;
3.start the thread A to do work, this thread was launched on cores 2-7 by rte_eal_remote_launch.
4. start another thread B with funtion pthread_create to do cli task.
The problem is :
When I callled rte_eth_tx_burst to send packet on thread A.It can work success.
But when I called rte_eth_tx_burst to send packet on thread B. It has Segmentation fault as follow:
#0 0x0000fffff628fbc4 in ?? () from /lib64/librte_net_cnxk.so.22
#1 0x00000000004e478c in rte_eth_tx_burst (queue_id=0, nb_pkts=<optimized out>, tx_pkts=0xffffdd67d6e0, port_id=0)
at host/aarch64-buildroot-linux-gnu/sysroot/usr/include/rte_ethdev.h:5866
Why cannot Thread B use rte_eth_tx_burst to send packet ?