There is no packet count with testpmd (@dpdk-stable-22.11.1)

고명진 white931 at naver.com
Mon Jan 16 06:29:36 CET 2023


Hi Members,
 
I'm facing some problem with testpmd application in dpdk. 
I'm trying to run the testpmd command on a linux. 
But there is no packet counts.
What should I do? Please let me know....
 
For your understanding, I'll share my log
1. My environment
2. command dpdk-devbind 
3. command testpmd
 
1. My environment
------------------------------------------------------------------------------------------------------------------------------------
[DPDK version]
mj at smallhoney:~/vRAN_project/dpdk-stable-22.11.1$ cat VERSION
22.11.1
 
[Ununtu version]
mj at smallhoney:~$ cat /etc/issue
Ubuntu 22.04 LTS
 
[Kernel version] 
mj at smallhoney:~$ uname -r
5.15.0-57-generic
 
[Ethernet NIC]
mj at smallhoney:~$ lspci | grep Ethernet
06:00.0 Ethernet controller: Aquantia Corp. AQC107 NBase-T/IEEE 802.3bz Ethernet Controller [AQtion] (rev 02).
 
[NIC Driver] 
mj at smallhoney:~$ sudo modinfo atlantic   
filename:       /lib/modules/5.15.0-57-generic/updates/drivers/net/ethernet/aquantia/atlantic/atlantic.ko
description:    Marvell (Aquantia) Corporation(R) Network Driver
author:         Marvell
version:        2.4.15.0
license:        GPL v2
 
[Hugepage]
mj at smallhoney:~$ cat /proc/meminfo | grep Huge*
AnonHugePages:         0 kB
ShmemHugePages:        0 kB
FileHugePages:         0 kB
HugePages_Total:       6
HugePages_Free:        6
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:    1048576 kB
Hugetlb:         6291456 kB
------------------------------------------------------------------------------------------------------------------------------------
 
2.  dpdk-devbind
------------------------------------------------------------------------------------------------------------------------------------ 
mj at smallhoney:~/vRAN_project/dpdk-stable-22.11.1/usertools$ sudo ./dpdk-devbind.py -s
 
Network devices using DPDK-compatible driver
============================================
0000:06:00.0 'AQC107 NBase-T/IEEE 802.3bz Ethernet Controller [AQtion] 87b1' drv=igb_uio unused=atlantic,vfio-pci
------------------------------------------------------------------------------------------------------------------------------------

3. testpmd
------------------------------------------------------------------------------------------------------------------------------------
mj at smallhoney:~/vRAN_project/dpdk-stable-22.11.1/build/app$ sudo ./dpdk-testpmd -- -i --forward-mode=flowgen
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_atlantic (1d6a:87b1) device: 0000:06:00.0 (socket -1)
TELEMETRY: No legacy callbacks, legacy socket not created
Interactive-mode selected
Set flowgen packet forwarding mode
Warning: NUMA should be configured manually by using --port-numa-config and --ring-numa-config parameters along with --numa.
testpmd: create a new mbuf pool <mb_pool_0>: n=203456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
 
Warning! port-topology=paired and odd forward ports number, the last port will pair with itself.
 
Configuring Port 0 (socket 0)
Port 0: 00:30:93:10:47:87
Checking link statuses...
Done
testpmd>
Port 0: link state change event
testpmd> show port summary 0 
Number of available ports: 1
Port MAC Address       Name         Driver         Status   Link
0    00:30:93:10:47:87 0000:06:00.0 net_atlantic   up       1 Gbps
 
testpmd> start
flowgen packet forwarding - ports=1 - cores=1 - streams=1 - NUMA support enabled, MP allocation mode: native
Logical Core 1 (socket 0) forwards packets on 1 streams:
 RX P=0/Q=0 (socket 0) -> TX P=0/Q=0 (socket 0) peer=02:00:00:00:00:00
 
 number of flows for port 0: 1024
 flowgen packet forwarding packets/burst=32
 packet len=64 - nb packet segments=1
 nb forwarding cores=1 - nb forwarding ports=1
 port 0: RX queue number: 1 Tx queue number: 1
   Rx offloads=0x0 Tx offloads=0x0
   RX queue: 0
     RX desc=512 - RX free threshold=0
     RX threshold registers: pthresh=0 hthresh=0  wthresh=0
     RX Offloads=0x0
   TX queue: 0
     TX desc=512 - TX free threshold=0
     TX threshold registers: pthresh=0 hthresh=0  wthresh=0
     TX offloads=0x0 - TX RS bit threshold=0
 
testpmd> show port stats 0
 ######################## NIC statistics for port 0  ######################## 
 RX-packets: 0          RX-missed: 0          RX-bytes:  0
 RX-errors: 0
 RX-nombuf:  0
 TX-packets: 0          TX-errors: 0          TX-bytes:  0
 
 Throughput (since last show)
 Rx-pps:            0          Rx-bps:            0
 Tx-pps:            0          Tx-bps:            0
 ############################################################################
------------------------------------------------------------------------------------------------------------------------------------

 
 
 
 

 



 





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/users/attachments/20230116/a2c45889/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: attach(2).gif
Type: image/gif
Size: 13402 bytes
Desc: not available
URL: <http://mails.dpdk.org/archives/users/attachments/20230116/a2c45889/attachment-0001.gif>


More information about the users mailing list