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

dpdk-pdump 反复重启多次后接收数据包导致Segmentation fault,请大神指教

0 投票
1、绑定两个千兆网卡,一个光口,一个电口,在pktgen作为primary进程

2、启动./dpdk-pdump -- --pdump 'port=0,queue=*,rx-dev=/tmp/rx.pcap'

3、在第三次启动收包的时候出现Segmentation fault

三次日志

[root@centos7-34 pdump]# ./dpdk-pdump -- --pdump 'port=0,queue=*,rx-dev=/tmp/rx.pcap'
EAL: Detected 12 lcore(s)
EAL: Multi-process socket /var/run/.rte_unix_8134_9b7c0df09f11
EAL: Probing VFIO support...
EAL: WARNING: Address Space Layout Randomization (ASLR) is enabled in the kernel.
EAL:    This may cause issues with mapping memory into secondary processes
EAL: PCI device 0000:02:00.0 on NUMA socket 0
EAL:   probe driver: 8086:10e6 net_e1000_igb
EAL: PCI device 0000:02:00.1 on NUMA socket 0
EAL:   probe driver: 8086:10e6 net_e1000_igb
EAL: PCI device 0000:06:00.0 on NUMA socket 0
EAL:   probe driver: 8086:10d3 net_e1000_em
EAL: PCI device 0000:07:00.0 on NUMA socket 0
EAL:   probe driver: 8086:10d3 net_e1000_em
PMD: Initializing pmd_pcap for net_pcap_rx_0
PMD: Creating pcap-backed ethdev on numa socket -1
Port 2 MAC: 00 00 00 01 02 03
^C

Signal 2 received, preparing to exit...
##### PDUMP DEBUG STATS #####
 -packets dequeued:   0
 -packets transmitted to vdev:  0
 -packets freed:   0
[root@centos7-34 pdump]# ./dpdk-pdump -- --pdump 'port=0,queue=*,rx-dev=/tmp/rx.pcap'
EAL: Detected 12 lcore(s)
EAL: Multi-process socket /var/run/.rte_unix_8145_9b821cfc37cd
EAL: Probing VFIO support...
EAL: WARNING: Address Space Layout Randomization (ASLR) is enabled in the kernel.
EAL:    This may cause issues with mapping memory into secondary processes
EAL: PCI device 0000:02:00.0 on NUMA socket 0
EAL:   probe driver: 8086:10e6 net_e1000_igb
EAL: PCI device 0000:02:00.1 on NUMA socket 0
EAL:   probe driver: 8086:10e6 net_e1000_igb
EAL: PCI device 0000:06:00.0 on NUMA socket 0
EAL:   probe driver: 8086:10d3 net_e1000_em
EAL: PCI device 0000:07:00.0 on NUMA socket 0
EAL:   probe driver: 8086:10d3 net_e1000_em
PMD: Initializing pmd_pcap for net_pcap_rx_0
PMD: Creating pcap-backed ethdev on numa socket -1
Port 3 MAC: 00 00 00 01 02 03
^C

Signal 2 received, preparing to exit...
##### PDUMP DEBUG STATS #####
 -packets dequeued:   0
 -packets transmitted to vdev:  0
 -packets freed:   0
[root@centos7-34 pdump]# ./dpdk-pdump -- --pdump 'port=0,queue=*,rx-dev=/tmp/rx.pcap'
EAL: Detected 12 lcore(s)
EAL: Multi-process socket /var/run/.rte_unix_8156_9b8735aa6270
EAL: Probing VFIO support...
EAL: WARNING: Address Space Layout Randomization (ASLR) is enabled in the kernel.
EAL:    This may cause issues with mapping memory into secondary processes
EAL: PCI device 0000:02:00.0 on NUMA socket 0
EAL:   probe driver: 8086:10e6 net_e1000_igb
EAL: PCI device 0000:02:00.1 on NUMA socket 0
EAL:   probe driver: 8086:10e6 net_e1000_igb
EAL: PCI device 0000:06:00.0 on NUMA socket 0
EAL:   probe driver: 8086:10d3 net_e1000_em
EAL: PCI device 0000:07:00.0 on NUMA socket 0
EAL:   probe driver: 8086:10d3 net_e1000_em
PMD: Initializing pmd_pcap for net_pcap_rx_0
PMD: Creating pcap-backed ethdev on numa socket -1
Segmentation fault
最新提问 5月 4 分类:DPDK初学入门 | 用户: dfyue (120 分)

1个回答

0 投票
port id 没释放的问题, 仔细看log 会发现 port id 往上涨,我也遇到过,改一下 rte_eth_dev_find_free_port 函数就可以了
最新回答 6 天前 | 用户: ywz123 (410 分)
...