Skip to content
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

Closed
wliu2007 opened this issue Jan 22, 2021 · 11 comments
Closed

Comments

@wliu2007
Copy link

wliu2007 commented Jan 22, 2021

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
 <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-0 of 1   <Main Page>  Copyright (c) <2010-2020>, Intel Corporation
  Flags:Port        : P------Single      :0
Link State          :          <UP-1000-FD>      ---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) ----------------
@pktgen
Copy link
Owner

pktgen commented Jan 22, 2021 via email

@wliu2007
Copy link
Author

wliu2007 commented Jan 23, 2021

my dpdk lib was installed on: /usr/local/lib/x86_64-linux-gnu
and i also add the "/usr/local/lib/x86_64-linux-gnu" to /etc/ld.so.conf.d/x86_64-linux-gnu.conf , then execute ldconfig
i did not set the LD_LIBRARY_PATH

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# 

@wliu2007
Copy link
Author

wliu2007 commented Jan 23, 2021

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?

@pktgen
Copy link
Owner

pktgen commented Jan 23, 2021 via email

@pktgen
Copy link
Owner

pktgen commented Jan 23, 2021

Does the link show as up when you get pktgen to run?

@wliu2007
Copy link
Author

wliu2007 commented Jan 23, 2021

I have done the ldconfig command.

The fact is that these two bin is not same, md5sum result is not equal.
you can have a check on your own environment.

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# 

@wliu2007
Copy link
Author

wliu2007 commented Jan 25, 2021

@pktgen
I found that the usr/locale/bin/pktgen is not copied directly from Builddir/app/pktgen.
the usr/locale/bin/pktgen is generated by command "/usr/local/bin/meson install --no-rebuild"

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

@pktgen
Copy link
Owner

pktgen commented Jan 25, 2021

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

@wliu2007
Copy link
Author

wliu2007 commented Jan 26, 2021

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# 

@pktgen
Copy link
Owner

pktgen commented Jan 30, 2021

$ 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.

@pktgen
Copy link
Owner

pktgen commented Jan 30, 2021

Going to close this one as I can not reproduce this problem.

@pktgen pktgen closed this as completed Jan 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants