Hello, Please don't go private, as I tend to just ignore such mail. Re-adding ml and others.
And don't top post. On Wed, Feb 5, 2025 at 8:06 AM Nafiah Siddiqha <nafiah.siddi...@iwave-global.com> wrote: > > Hi, > I'm able to run testpmd with the given set of instructions you had mentioned > and tried it with pktgen fir which I'm facing mbuff issue, If you apply the same commandline options, testpmd and pktgen should have the same behavior. Unless testpmd and pktgen are not linked the same way to your DPDK installation/build directory. > I have increased my hugepages besides its throwing the same error while I > can run the pktgen application with vfio-pci driver. > I'm looking forward on testing pktgen application with openNIC driver. openNIC seems an out of tree driver from AMD/Xilinx. The DPDK upstream developers don't know much about this. You will need to contact the authors if you face issues with this driver. Some comment below, as the problem still seems a generic DPDK issue. > > Below are the logs, > > sudo ./usr/local/bin/pktgen -l 1-8 -n 4 --vdev="net_pcap0,iface=enp1s0f0" > --vdev="net_pcap1,iface=enp1s0f1" -d librte_net_pcap.so -- -m [2:3].0 -m > [5:8].1 > > Copyright(c) <2010-2021>, Intel Corporation. All rights reserved. Powered by > DPDK > EAL: Detected 12 lcore(s) > EAL: Detected 1 NUMA nodes > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > EAL: Selected IOVA mode 'VA' > EAL: 4 hugepages of size 1073741824 reserved, but no mounted hugetlbfs found > for that size > EAL: Probing VFIO support... > EAL: VFIO support initialized > EAL: No legacy callbacks, legacy socket not created > > *** Copyright(c) <2010-2021>, Intel Corporation. All rights reserved. > *** Pktgen created by: Keith Wiles -- >>> Powered by DPDK <<< > > Port: Name IfIndex Alias NUMA PCI > 0: net_pcap 4 eth_pcap -1 > 1: net_pcap 5 eth_pcap -1 > > Initialize Port 0 -- TxQ 1, RxQ 1 > MBUF: error setting mempool handler > !PANIC!: Cannot create mbuf pool (Default RX 0:0) port 0, queue 0, nb_mbufs > 4096, socket_id 0: Invalid argument > PANIC in pktgen_mbuf_pool_create(): > Cannot create mbuf pool (Default RX 0:0) port 0, queue 0, nb_mbufs 4096, > socket_id 0: Invalid argument I guess no mempool driver is loaded, so pktgen can't create a mempool. Rather than pass only one driver in the command line, you'd better pass the directory where all the compiled DPDK drivers are. That will be much easier than having to cherry pick every driver you need. -- David Marchand