0 投票
分类:DPDK初学入门 | 用户: (160 分)

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  ?

登录 或者 注册 后回答这个问题。

相关问题

0 投票
0 回答
最新提问 3月 30, 2019 分类:DPDK初学入门 | 用户: hehuan (370 分)
0 投票
2 回答
0 投票
1 回答
最新提问 12月 8, 2017 分类:DPDK API问答 | 用户: qwe131829 (200 分)

欢迎来到 DPDK交流社区 ,有什么问题可以尽管在这里提问,您将会收到社区其他成员的回答;也可以将您的总结写在这里,为社区其他成员提供帮助。

QQ交流2群:635461501 (入群请注明来源)

冀ICP备15005332号-2
...