DPDK usage discussions
 help / color / mirror / Atom feed
* DPDK segment fault in vmxnet3
@ 2022-05-30  8:39 朱
  0 siblings, 0 replies; only message in thread
From: 朱 @ 2022-05-30  8:39 UTC (permalink / raw)
  To: users


[-- Attachment #1.1: Type: text/plain, Size: 2027 bytes --]

ESXi 6.5
Guest OS: Ubuntu 20.04
Network Driver: VMXNET3
DPDK: 21.11.1

There are three network adapters, one for ssh, two for DPDK.


## set kernel parameters
echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode


## bind dev

root@dpdk01:~/dpdk-stable-21.11.1/usertools# ./dpdk-devbind.py --status-dev net
Network devices using DPDK-compatible driver
============================================
0000:0b:00.0 'VMXNET3 Ethernet Controller 07b0' drv=vfio-pci unused=vmxnet3
0000:13:00.0 'VMXNET3 Ethernet Controller 07b0' drv=vfio-pci unused=vmxnet3
Network devices using kernel driver
===================================
0000:03:00.0 'VMXNET3 Ethernet Controller 07b0' if=eth0 drv=vmxnet3 unused=vfio-pci *Active*



# testpmd segment fault

root@dpdk01:~/dpdk-stable-21.11.1/build/app# ./dpdk-testpmd -l 0-3 -n 4
EAL: Detected CPU lcores: 4
EAL: Detected NUMA nodes: 1
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: No available 1048576 kB hugepages reported
EAL: VFIO support initialized
EAL: Using IOMMU type 8 (No-IOMMU)
EAL: Ignore mapping IO port bar(3)
EAL: Probe PCI driver: net_vmxnet3 (15ad:7b0) device: 0000:0b:00.0 (socket 0)
EAL: Ignore mapping IO port bar(3)
EAL: Probe PCI driver: net_vmxnet3 (15ad:7b0) device: 0000:13:00.0 (socket 0)
testpmd: create a new mbuf pool <mb_pool_0>: n=171456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
Configuring Port 0 (socket 0)
Port 0: 00:0C:29:AE:03:68
Configuring Port 1 (socket 0)
Segmentation fault (core dumped)



# gdb info
Thread 1 "dpdk-testpmd" received signal SIGSEGV, Segmentation fault.
0x0000555555930c0f in vmxnet3_write_mac.isra ()
(gdb) where
#0  0x0000555555930c0f in vmxnet3_write_mac.isra ()
#1  0x0000555555931e5c in vmxnet3_dev_start ()
#2  0x000055555624c6cc in rte_eth_dev_start ()
#3  0x00005555560e13d0 in start_port ()
#4  0x000055555597d98b in main ()










 

[-- Attachment #1.2: Type: text/html, Size: 3074 bytes --]

[-- Attachment #2: 图片.png --]
[-- Type: image/png, Size: 47164 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-31 14:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-30  8:39 DPDK segment fault in vmxnet3

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).