-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
why the ./usr/local/bin/pktgen is not same as ./Builddir/app/pktgen ? #52
Comments
The problem is the shared libraries from DPDK and how they are found. The PMDs in DPDK are not referenced in DPDK and you have to statically link them or force them to be loaded by using the DPDK option -d. In the app/meson.build file I have a few PMDs I reference load and it appears the Builddir version seems to be able to locate and load them, when we run from ./usr/local/bin it is not loaded as it appears LD_LIBRARY_PATH is not set or some other reason.
I will look at this problem more. I normally add the line /usr/local/lib/x86_64-linux-gnu (followed by an ldconfig) to the /etc/ld.so.conf.d/x86_64-linux-gnu file as DPDK is not installed in a standard location for ldconfig to automatically find.
From: wLiu2007 <notifications@github.com>
Date: Friday, January 22, 2021 at 11:07 AM
To: pktgen/Pktgen-DPDK <Pktgen-DPDK@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [pktgen/Pktgen-DPDK] why the ./usr/local/bin/pktgen is not same as ./Builddir/app/pktgen ? (#52)
Verison INFO; (Pktgen 21.01.2 + DPDK 20.11.0)
why the ./usr/local/bin/pktgen is not same as ./Builddir/app/pktgen ?
when i run the ./usr/local/bin/pktgen, the pktgen cannot found the port, report a panic: !PANIC!: *** Did not find any ports to use ***
but when i run ./Builddir/app/pktgen, is ok.
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# find ./ -name pktgen | xargs md5sum
8557f8c37562eab5f67194e9516a8ba2 ./Builddir/app/pktgen
921c65b8cb0e1d0f3121c91b1eb47955 ./usr/local/bin/pktgen
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# find ./ -name pktgen | xargs ls -l
-rwxrwxr-x 1 root admin 463136 Jan 22 22:41 ./Builddir/app/pktgen
-rwxr-xr-x 1 root admin 463136 Jan 22 22:41 ./usr/local/bin/pktgen
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2#
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# ./usr/local/bin/pktgen -l 0-3 -n 3 -- -P -m "[1].0"
Copyright (c) <2010-2020>, Intel Corporation. All rights reserved. Powered by DPDK
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: Probing VFIO support...
EAL: No legacy callbacks, legacy socket not created
*** Copyright (c) <2010-2020>, Intel Corporation. All rights reserved.
*** Pktgen created by: Keith Wiles -- >>> Powered by DPDK <<<
Port: Name IfIndex Alias NUMA PCI
!PANIC!: *** Did not find any ports to use ***
PANIC in pktgen_config_ports():
*** Did not find any ports to use ***
6: [./usr/local/bin/pktgen() [0x404ac9]]
5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f4c1b406840]]
4: [./usr/local/bin/pktgen() [0x4046ce]]
3: [./usr/local/bin/pktgen() [0x42a7d7]]
2: [/usr/local/lib/x86_64-linux-gnu/librte_eal.so.21(__rte_panic+0xc5) [0x7f4c1c345235]]
1: [/usr/local/lib/x86_64-linux-gnu/librte_eal.so.21(rte_dump_stack+0x2b) [0x7f4c1c36035b]]
Aborted
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# ./Builddir/app/pktgen -l 0-3 -n 3 -- -P -m "[1].0"
Copyright (c) <2010-2020>, Intel Corporation. All rights reserved. Powered by DPDK
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: Probing VFIO support...
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Probe PCI driver: net_e1000_igb (8086:1533) device: 0000:07:00.0 (socket 0)
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: No legacy callbacks, legacy socket not created
*** Copyright (c) <2010-2020>, Intel Corporation. All rights reserved.
*** Pktgen created by: Keith Wiles -- >>> Powered by DPDK <<<
Port: Name IfIndex Alias NUMA PCI
0: net_e1000_igb 0 0 8086:1533/07:00.0
Initialize Port 0 -- TxQ 1, RxQ 1
Src MAC 0c:73:eb:90:26:63
WARNING: Nothing to do on lcore 2: exiting
WARNING: Nothing to do on lcore 3: exiting
RX/TX processing lcore: 1 rx: 1 tx: 1
· Ports 0-0 of 1 Copyright (c) <2010-2020>, Intel Corporation
Flags:Port : P------Single :0
Link State : ---Total Rate---
Pkts/s Max/Rx : 1/1 1/1
Max/Tx : 0/0 0/0
MBits/s Rx/Tx : 0/0 0/0
Broadcast : 0
Multicast : 0
Sizes 64 : 0
65-127 : 2
128-255 : 0
256-511 : 0
512-1023 : 0
1024-1518 : 0
Runts/Jumbos : 0/0
ARP/ICMP Pkts : 0/0
Errors Rx/Tx : 0/0
Total Rx Pkts : 2
Tx Pkts : 0
Rx MBs : 0
Tx MBs : 0
:
Pattern Type : abcd...
Tx Count/% Rate : Forever /100%
Pkt Size/Tx Burst : 64 / 32
TTL/Port Src/Dest : 64/ 1234/ 5678
Pkt Type:VLAN ID : IPv4 / TCP:0001
802.1p CoS/DSCP/IPP : 0/ 0/ 0
VxLAN Flg/Grp/vid : 0000/ 0/ 0
IP Destination : 192.168.1.1
Source : 192.168.0.1/24
MAC Destination : 00:00:00:00:00:00
Source : 0c:73:eb:90:26:63
PCI Vendor/Addr : 8086:1533/07:00.0
…-- Pktgen 21.01.2 (DPDK 20.11.0) Powered by DPDK (pid:24707) ----------------
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#52>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABC4ICUHMBGCI2OENUMR72DS3GWFFANCNFSM4WOYXXNA>.
|
my dpdk lib was installed on: /usr/local/lib/x86_64-linux-gnu detail info: root@CyOS:/usr/local/lib/x86_64-linux-gnu# ls librte_* | wc -l
616
root@CyOS:/usr/local/lib/x86_64-linux-gnu# cat /etc/ld.so.conf.d/x86_64-linux-gnu.conf
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu
/usr/local/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/samba
root@CyOS:/usr/local/lib/x86_64-linux-gnu# pkg-config --cflags --libs libdpdk
-include rte_config.h -march=native -I/usr/local/include -L/usr/local/lib/x86_64-linux-gnu -Wl,--as-needed -lrte_node -lrte_graph -lrte_bpf -lrte_flow_classify -lrte_pipeline -lrte_table -lrte_port -lrte_fib -lrte_ipsec -lrte_vhost -lrte_stack -lrte_security -lrte_sched -lrte_reorder -lrte_rib -lrte_regexdev -lrte_rawdev -lrte_pdump -lrte_power -lrte_member -lrte_lpm -lrte_latencystats -lrte_kni -lrte_jobstats -lrte_ip_frag -lrte_gso -lrte_gro -lrte_eventdev -lrte_efd -lrte_distributor -lrte_cryptodev -lrte_compressdev -lrte_cfgfile -lrte_bitratestats -lrte_bbdev -lrte_acl -lrte_timer -lrte_hash -lrte_metrics -lrte_cmdline -lrte_pci -lrte_ethdev -lrte_meter -lrte_net -lrte_mbuf -lrte_mempool -lrte_rcu -lrte_ring -lrte_eal -lrte_telemetry -lrte_kvargs
root@CyOS:/usr/local/lib/x86_64-linux-gnu# cd /data/work/Pktgen-DPDK-pktgen-21.01.2
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# ldd ./usr/local/bin/pktgen
linux-vdso.so.1 => (0x00007ffc468a7000)
librte_timer.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_timer.so.21 (0x00007f44e7b5f000)
librte_ethdev.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_ethdev.so.21 (0x00007f44e78bb000)
librte_net.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_net.so.21 (0x00007f44e76b4000)
librte_mbuf.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_mbuf.so.21 (0x00007f44e74a8000)
librte_mempool.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_mempool.so.21 (0x00007f44e729e000)
librte_eal.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_eal.so.21 (0x00007f44e6faf000)
libpcap.so.0.8 => /usr/lib/x86_64-linux-gnu/libpcap.so.0.8 (0x00007f44e6d6e000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f44e6b6a000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f44e6861000)
librte_net_bond.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_net_bond.so.21 (0x00007f44e6643000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f44e6426000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f44e605c000)
/lib64/ld-linux-x86-64.so.2 (0x00007f44e7d64000)
libnuma.so.1 => /usr/lib/x86_64-linux-gnu/libnuma.so.1 (0x00007f44e5e51000)
librte_kvargs.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_kvargs.so.21 (0x00007f44e5c4e000)
librte_telemetry.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_telemetry.so.21 (0x00007f44e5a45000)
librte_ring.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_ring.so.21 (0x00007f44e5841000)
librte_meter.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_meter.so.21 (0x00007f44e563e000)
librte_bus_pci.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_bus_pci.so.21 (0x00007f44e5432000)
librte_pci.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_pci.so.21 (0x00007f44e522f000)
librte_bus_vdev.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_bus_vdev.so.21 (0x00007f44e502a000)
librte_sched.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_sched.so.21 (0x00007f44e4e1d000)
librte_ip_frag.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_ip_frag.so.21 (0x00007f44e4c13000)
librte_hash.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_hash.so.21 (0x00007f44e49f6000)
librte_rcu.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_rcu.so.21 (0x00007f44e47f1000)
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2#
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# ldd Builddir/app/pktgen
linux-vdso.so.1 => (0x00007ffe2a5f5000)
librte_timer.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_timer.so.21 (0x00007f6bf64cf000)
librte_ethdev.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_ethdev.so.21 (0x00007f6bf622b000)
librte_net.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_net.so.21 (0x00007f6bf6024000)
librte_mbuf.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_mbuf.so.21 (0x00007f6bf5e18000)
librte_mempool.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_mempool.so.21 (0x00007f6bf5c0e000)
librte_eal.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_eal.so.21 (0x00007f6bf591f000)
libpcap.so.0.8 => /usr/lib/x86_64-linux-gnu/libpcap.so.0.8 (0x00007f6bf56de000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6bf54da000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f6bf51d1000)
librte_net_bond.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_net_bond.so.21 (0x00007f6bf4fb3000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6bf4d96000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6bf49cc000)
/lib64/ld-linux-x86-64.so.2 (0x00007f6bf66d4000)
libnuma.so.1 => /usr/lib/x86_64-linux-gnu/libnuma.so.1 (0x00007f6bf47c1000)
librte_kvargs.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_kvargs.so.21 (0x00007f6bf45be000)
librte_telemetry.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_telemetry.so.21 (0x00007f6bf43b5000)
librte_ring.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_ring.so.21 (0x00007f6bf41b1000)
librte_meter.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_meter.so.21 (0x00007f6bf3fae000)
librte_bus_pci.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_bus_pci.so.21 (0x00007f6bf3da2000)
librte_pci.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_pci.so.21 (0x00007f6bf3b9f000)
librte_bus_vdev.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_bus_vdev.so.21 (0x00007f6bf399a000)
librte_sched.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_sched.so.21 (0x00007f6bf378d000)
librte_ip_frag.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_ip_frag.so.21 (0x00007f6bf3583000)
librte_hash.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_hash.so.21 (0x00007f6bf3366000)
librte_rcu.so.21 => /usr/local/lib/x86_64-linux-gnu/librte_rcu.so.21 (0x00007f6bf3161000)
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# echo $LD_LIBRARY_PATH
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2#
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# |
When I set the LD_LIBRARY_PATH and export it, now the ./usr/local/bin/pktgen -l 0-3 -n 3 -- -P -m "[1].0" can be started without error. root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# LD_LIBRARY_PATH=/usr/local/lib/x86_64-linux-gnu/
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# export LD_LIBRARY_PATH
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# ./usr/local/bin/pktgen -l 0-3 -n 3 -- -P -m "[1].0" What's the difference between these two pktgen? shouldn't the ./usr/local/bin/pktgen be copied from ./Builddir/app/pktgen? Why does not the ./Builddir/app/pktgen has this problem? |
The two binaries should be the same as usr/local/bin versions are just copies of the Builddir versions. BTW did you do a ldconfig after you edited the /etc/ld.so.conf.d/x86_64-linux-gnu file?
From: wLiu2007 <notifications@github.com>
Date: Saturday, January 23, 2021 at 12:07 AM
To: pktgen/Pktgen-DPDK <Pktgen-DPDK@noreply.github.com>
Cc: Keith Wiles <keith.wiles@icloud.com>, Comment <comment@noreply.github.com>
Subject: Re: [pktgen/Pktgen-DPDK] why the ./usr/local/bin/pktgen is not same as ./Builddir/app/pktgen ? (#52)
When I set the LD_LIBRARY_PATH and export it, now the ./usr/local/bin/pktgen -l 0-3 -n 3 -- -P -m "[1].0" can be started without error.
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# LD_LIBRARY_PATH=/usr/local/lib/x86_64-linux-gnu/
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# export LD_LIBRARY_PATH
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# ./usr/local/bin/pktgen -l 0-3 -n 3 -- -P -m "[1].0"
What's the difference between these two pktgen? shouldn't the ./usr/local/bin/pktgen be copied from ./Builddir/app/pktgen? Why does not the ./Builddir/app/pktgen has this problem?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#52 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABC4ICWWB23MQQHWM3NTCBDS3JRQPANCNFSM4WOYXXNA>.
|
Does the link show as up when you get pktgen to run? |
I have done the ldconfig command. The fact is that these two bin is not same, md5sum result is not equal. root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# find ./ -name pktgen | xargs ls -l
-rwxrwxr-x 1 root admin 463136 Jan 22 22:41 ./Builddir/app/pktgen
-rwxr-xr-x 1 root admin 463136 Jan 22 22:41 ./usr/local/bin/pktgen
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# md5sum ./usr/local/bin/pktgen
921c65b8cb0e1d0f3121c91b1eb47955 ./usr/local/bin/pktgen
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# md5sum ./Builddir/app/pktgen
8557f8c37562eab5f67194e9516a8ba2 ./Builddir/app/pktgen
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# |
@pktgen I don't know about meson. What is done to pktgen bin when calling meson install? refet to build.ninja: build meson-install: CUSTOM_COMMAND PHONY | all
DESC = Installing$ files.
COMMAND = /usr/local/bin/meson install --no-rebuild
pool = console
build install: phony meson-install |
The usr/local/bin/pktgen works for me and the md5sum's are different. Can you just try coping the Builddir/app/pktgen to usr/local/bin/pktgen-build and try using usr/local/bin/pktgen-build? Maybe meson or ninja is the issue. I am using versions meson 0.55.3 and ninja 1.10.0 |
coping the Builddir/app/pktgen to usr/local/bin/pktgen-build and try using usr/local/bin/pktgen-build: it can work well, no panic report. The difference is one need to set LD_LIBRARY_PATH, one does not need to be set. ####################################################################################### nina version
root@CyOS:/data/work/dpdk/dpdk-20.11/build/examples# ninja --version
1.10.0.git.kitware.jobserver-1
root@CyOS:/data/work/dpdk/dpdk-20.11/build/examples# meson -v
0.56.2
####################################################################################### usr bin has Error
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2#
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# ./usr/local/bin/pktgen -l 0-3 -n 3 -- -P -m "[1].0"
Copyright (c) <2010-2020>, Intel Corporation. All rights reserved. Powered by DPDK
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: No legacy callbacks, legacy socket not created
*** Copyright (c) <2010-2020>, Intel Corporation. All rights reserved.
*** Pktgen created by: Keith Wiles -- >>> Powered by DPDK <<<
Port: Name IfIndex Alias NUMA PCI
!PANIC!: *** Did not find any ports to use ***
PANIC in pktgen_config_ports():
*** Did not find any ports to use ***
6: [./usr/local/bin/pktgen() [0x404ac9]]
5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f7e191e7840]]
4: [./usr/local/bin/pktgen() [0x4046ce]]
3: [./usr/local/bin/pktgen() [0x42a7d7]]
2: [/usr/local/lib/x86_64-linux-gnu/librte_eal.so.21(__rte_panic+0xc5) [0x7f7e1a126235]]
1: [/usr/local/lib/x86_64-linux-gnu/librte_eal.so.21(rte_dump_stack+0x2b) [0x7f7e1a14135b]]
Aborted
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2#
####################################################################################### Builddir bin has no error
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2#
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# ./Builddir/app/pktgen -l 0-3 -n 3 -- -P -m "[1].0"
Copyright (c) <2010-2020>, Intel Corporation. All rights reserved. Powered by DPDK
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Probe PCI driver: net_e1000_igb (8086:1533) device: 0000:06:00.0 (socket 0)
EAL: Invalid NUMA socket, default to 0
EAL: Probe PCI driver: net_e1000_igb (8086:1533) device: 0000:07:00.0 (socket 0)
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: No legacy callbacks, legacy socket not created
*** Copyright (c) <2010-2020>, Intel Corporation. All rights reserved.
*** Pktgen created by: Keith Wiles -- >>> Powered by DPDK <<<
Port: Name IfIndex Alias NUMA PCI
0: net_e1000_igb 0 0 8086:1533/06:00.0
1: net_e1000_igb 0 0 8086:1533/07:00.0
Initialize Port 0 -- TxQ 1, RxQ 1
Src MAC 0c:73:eb:90:26:62
<Promiscuous mode Enabled>
WARNING: Nothing to do on lcore 2: exiting
WARNING: Nothing to do on lcore 3: exiting
RX/TX processing lcore: 1 rx: 1 tx: 1
| Ports 0-1 of 2 <Main Page> Copyright (c) <2010-2020>, Intel Corporation
Flags:Port : P------Single :0
Link State : <--Down--> ---Total Rate---
Pkts/s Max/Rx : 0/0 0/0
Max/Tx : 0/0 0/0
MBits/s Rx/Tx : 0/0 0/0
Broadcast : 0
Multicast : 0
Sizes 64 : 0
65-127 : 0
128-255 : 0
256-511 : 0
512-1023 : 0
1024-1518 : 0
Runts/Jumbos : 0/0
ARP/ICMP Pkts : 0/0
Errors Rx/Tx : 0/0
Total Rx Pkts : 0
Tx Pkts : 0
Rx MBs : 0
Tx MBs : 0
:
Pattern Type : abcd...
Tx Count/% Rate : Forever /100%
Pkt Size/Tx Burst : 64 / 32
TTL/Port Src/Dest : 64/ 1234/ 5678
Pkt Type:VLAN ID : IPv4 / TCP:0001
802.1p CoS/DSCP/IPP : 0/ 0/ 0
VxLAN Flg/Grp/vid : 0000/ 0/ 0
IP Destination : 192.168.1.1
Source : 192.168.0.1/24
MAC Destination : 00:00:00:00:00:00
Source : 0c:73:eb:90:26:62
PCI Vendor/Addr : 8086:1533/06:00.0
-- Pktgen 21.01.2 (DPDK 20.11.0) Powered by DPDK (pid:10440) ----------------
** Version: DPDK 20.11.0, Command Line Interface without timers
Pktgen:/> quit
Device with port_id=1 already stopped
####################################################################################### copied to usr/local, has no error
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# cp Builddir/app/pktgen usr/local/bin/pktgen-build
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# ./usr/local/bin/pktgen-build -l 0-3 -n 3 -- -P -m "[1].0"
Copyright (c) <2010-2020>, Intel Corporation. All rights reserved. Powered by DPDK
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Probe PCI driver: net_e1000_igb (8086:1533) device: 0000:06:00.0 (socket 0)
EAL: Invalid NUMA socket, default to 0
EAL: Probe PCI driver: net_e1000_igb (8086:1533) device: 0000:07:00.0 (socket 0)
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: No legacy callbacks, legacy socket not created
*** Copyright (c) <2010-2020>, Intel Corporation. All rights reserved.
*** Pktgen created by: Keith Wiles -- >>> Powered by DPDK <<<
Port: Name IfIndex Alias NUMA PCI
0: net_e1000_igb 0 0 8086:1533/06:00.0
1: net_e1000_igb 0 0 8086:1533/07:00.0
Initialize Port 0 -- TxQ 1, RxQ 1
Src MAC 0c:73:eb:90:26:62
<Promiscuous mode Enabled>
WARNING: Nothing to do on lcore 2: exiting
WARNING: Nothing to do on lcore 3: exiting
RX/TX processing lcore: 1 rx: 1 tx: 1
\ Ports 0-1 of 2 <Main Page> Copyright (c) <2010-2020>, Intel Corporation
Flags:Port : P------Single :0
Link State : <--Down--> ---Total Rate---
Pkts/s Max/Rx : 0/0 0/0
Max/Tx : 0/0 0/0
MBits/s Rx/Tx : 0/0 0/0
Broadcast : 0
Multicast : 0
Sizes 64 : 0
65-127 : 0
128-255 : 0
256-511 : 0
512-1023 : 0
1024-1518 : 0
Runts/Jumbos : 0/0
ARP/ICMP Pkts : 0/0
Errors Rx/Tx : 0/0
Total Rx Pkts : 0
Tx Pkts : 0
Rx MBs : 0
Tx MBs : 0
:
Pattern Type : abcd...
Tx Count/% Rate : Forever /100%
Pkt Size/Tx Burst : 64 / 32
TTL/Port Src/Dest : 64/ 1234/ 5678
Pkt Type:VLAN ID : IPv4 / TCP:0001
802.1p CoS/DSCP/IPP : 0/ 0/ 0
VxLAN Flg/Grp/vid : 0000/ 0/ 0
IP Destination : 192.168.1.1
Source : 192.168.0.1/24
MAC Destination : 00:00:00:00:00:00
Source : 0c:73:eb:90:26:62
PCI Vendor/Addr : 8086:1533/06:00.0
-- Pktgen 21.01.2 (DPDK 20.11.0) Powered by DPDK (pid:10520) ----------------
** Version: DPDK 20.11.0, Command Line Interface without timers
Pktgen:/> quit
Device with port_id=1 already stopped
####################################################################################### set LD_LIBARARY_PATH has no error
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# export LD_LIBRARY_PATH=/usr/local/lib/x86_64-linux-gnu/
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# ./usr/local/bin/pktgen -l 0-3 -n 3 -- -P -m "[1].0"
Copyright (c) <2010-2020>, Intel Corporation. All rights reserved. Powered by DPDK
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Probe PCI driver: net_e1000_igb (8086:1533) device: 0000:06:00.0 (socket 0)
EAL: Invalid NUMA socket, default to 0
EAL: Probe PCI driver: net_e1000_igb (8086:1533) device: 0000:07:00.0 (socket 0)
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: No legacy callbacks, legacy socket not created
*** Copyright (c) <2010-2020>, Intel Corporation. All rights reserved.
*** Pktgen created by: Keith Wiles -- >>> Powered by DPDK <<<
Port: Name IfIndex Alias NUMA PCI
0: net_e1000_igb 0 0 8086:1533/06:00.0
1: net_e1000_igb 0 0 8086:1533/07:00.0
Initialize Port 0 -- TxQ 1, RxQ 1
Src MAC 0c:73:eb:90:26:62
<Promiscuous mode Enabled>
WARNING: Nothing to do on lcore 2: exiting
WARNING: Nothing to do on lcore 3: exiting
RX/TX processing lcore: 1 rx: 1 tx: 1
\ Ports 0-1 of 2 <Main Page> Copyright (c) <2010-2020>, Intel Corporation
Flags:Port : P------Single :0
Link State : <--Down--> ---Total Rate---
Pkts/s Max/Rx : 0/0 0/0
Max/Tx : 0/0 0/0
MBits/s Rx/Tx : 0/0 0/0
Broadcast : 0
Multicast : 0
Sizes 64 : 0
65-127 : 0
128-255 : 0
256-511 : 0
512-1023 : 0
1024-1518 : 0
Runts/Jumbos : 0/0
ARP/ICMP Pkts : 0/0
Errors Rx/Tx : 0/0
Total Rx Pkts : 0
Tx Pkts : 0
Rx MBs : 0
Tx MBs : 0
:
Pattern Type : abcd...
Tx Count/% Rate : Forever /100%
Pkt Size/Tx Burst : 64 / 32
TTL/Port Src/Dest : 64/ 1234/ 5678
Pkt Type:VLAN ID : IPv4 / TCP:0001
802.1p CoS/DSCP/IPP : 0/ 0/ 0
VxLAN Flg/Grp/vid : 0000/ 0/ 0
IP Destination : 192.168.1.1
Source : 192.168.0.1/24
MAC Destination : 00:00:00:00:00:00
Source : 0c:73:eb:90:26:62
PCI Vendor/Addr : 8086:1533/06:00.0
-- Pktgen 21.01.2 (DPDK 20.11.0) Powered by DPDK (pid:10969) ----------------
** Version: DPDK 20.11.0, Command Line Interface without timers
Pktgen:/> quit
Device with port_id=1 already stopped
root@CyOS:/data/work/Pktgen-DPDK-pktgen-21.01.2# |
$ cd pktgen
$ make rebuild I build as a normal user not root and use sudo to run pktgen. Running pktgen the current version 21.01.2 with DPDK 21.02.0-rc2 works with the line below. sudo ./usr/local/bin/pktgen -l 28,29-30,31-32 -n 4 --proc-type auto --log-level 7 --file-prefix pg -d /usr/local/lib/x86_64-linux-gnu/dpdk/pmds-21.1 -a af:00.0 -a af:00.1 -- -v -T -P -m [29:30].0 -m [31:32].1 -f themes/black-yellow.theme This command line also works. sudo -E ./Builddir/app/pktgen -l 28,29-30,31-32 -n 4 --proc-type auto --log-level 7 --file-prefix pg -d /usr/local/lib/x86_64-linux-gnu/dpdk/pmds-21.1 -a af:00.0 -a af:00.1 -- -v -T -P -m [29:30].0 -m [31:32].1 -f themes/black-yellow.theme I can not produce the problem you are reporting here. |
Going to close this one as I can not reproduce this problem. |
Verison INFO; (Pktgen 21.01.2 + DPDK 20.11.0)
why the ./usr/local/bin/pktgen is not same as ./Builddir/app/pktgen ?
when i run the ./usr/local/bin/pktgen, the pktgen cannot found the port, report a panic: !PANIC!: *** Did not find any ports to use ***
but when i run ./Builddir/app/pktgen, is ok.
The text was updated successfully, but these errors were encountered: