pktgen / Pktgen-DPDK

DPDK based packet generator
Other
390 stars 120 forks source link

Pktgen build error in Ubuntu 18.04 VM, Mellanox CX6 NIC, SR-IOV VF case #256

Closed jasonzzzzzzz closed 6 months ago

jasonzzzzzzz commented 7 months ago

Hi,

System settings: VM

Error message I got upon build:


# ~/Documents/Pktgen-DPDK$ make
>>> Use 'make help' for more commands

./tools/pktgen-build.sh build
>>  SDK Path          : /home/asplos/Documents
>>  Install Path      : /home/asplos/Documents/Pktgen-DPDK
>>  Build Directory   : /home/asplos/Documents/Pktgen-DPDK/Builddir
>>  Target Directory  : usr/local
>>  Build Path        : /home/asplos/Documents/Pktgen-DPDK/Builddir
>>  Target Path       : /home/asplos/Documents/Pktgen-DPDK/usr/local

 Build and install values:
   lua_enabled       : -Denable_lua=false
   gui_enabled       : -Denable_gui=false

>>> Ninja build in '/home/asplos/Documents/Pktgen-DPDK/Builddir' buildtype=release
meson configure -Dbuildtype=release -Denable_lua=false -Denable_gui=false /home/asplos/Documents/Pktgen-DPDK/Builddir

ERROR: No such build data file as "'/home/asplos/Documents/Pktgen-DPDK/Builddir/meson-private/build.dat'".
*** ERROR: meson configure -Dbuildtype=release -Denable_lua=false -Denable_gui=false /home/asplos/Documents/Pktgen-DPDK/Builddir
Makefile:15: recipe for target 'build' failed
make: *** [build] Error 1

Also I've got dpdk testpmd running problem as well:


# ~/Documents/dpdk$ sudo ./build/app/dpdk-testpmd 
EAL: Detected CPU lcores: 8
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: VFIO support initialized
EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:03.0 (socket -1)
eth_virtio_pci_init(): Failed to init PCI device
EAL: Requested device 0000:00:03.0 cannot be used
TELEMETRY: No legacy callbacks, legacy socket not created
testpmd: No probed ethernet devices
testpmd: create a new mbuf pool <mb_pool_0>: n=203456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
Done
No commandline core given, start packet forwarding
io packet forwarding - ports=0 - cores=0 - streams=0 - NUMA support enabled, MP allocation mode: native

  io packet forwarding packets/burst=32
  nb forwarding cores=1 - nb forwarding ports=0
Press enter to exit

Telling cores to stop...
Waiting for lcores to finish...

  +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 0              TX-dropped: 0             TX-total: 0
  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Done.

Bye...
KeithWiles commented 7 months ago

When you get a message like no-ports it normally means the port is not bound to DPDK via dpdk-devbind.py or DPDK can not find a driver to support the NIC device. DPDK loads a set of drivers at startup (which can be a limited set of drivers) and if that driver is not what you need it will give no ports found. You can load extra drivers via DPDK command line or Pktgen command line or you can look in the pktgen/app/Makefile to see if your driver is loaded. This could also mean the NIC type is not supported even if the correct driver is loaded. This would be a DPDK driver problem and CX6 is most likely not found or supported.

Also the Ubuntu version 18.04 is pretty old and my not be supported by DPDK.

KeithWiles commented 6 months ago

No response to this issue, closing for now, but you can reopen if you need.