LS1043A L2FWD TEST QUESTION

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LS1043A L2FWD TEST QUESTION

1,589 Views
jack_huang1
Contributor IV

 

In the process of using DPDK for performance testing, we can observe the normal packet receiving and receiving through L2FWD, but the PC connected through the physical port catches the packet, but there is no packet, I would like to ask, what is the reason?

The L2FWD observations are as follows

Port statistics ====================================
Statistics for port 0 ------------------------------
Packets sent:                        0
Packets received:                    0
Packets dropped:                     0
Statistics for port 1 ------------------------------
Packets sent:                        0
Packets received:                    0
Packets dropped:                     0
Statistics for port 2 ------------------------------
Packets sent:                       16
Packets received:                   46
Packets dropped:                     0
Statistics for port 3 ------------------------------
Packets sent:                       46
Packets received:                   16
Packets dropped:                     0
Aggregate statistics ===============================
Total packets sent:                 62
Total packets received:             62
Total packets dropped:               0

The specific operation of the test is as follows:

-  script configuration large page(512):
/usr/local/share/dpdk/usertools/dpdk-setup.sh

- fmc configuration:
export PATH=$PATH:/usr/local/bin
export DPAA_NUM_RX_QUEUES=1
/usr/local/bin/fmc -x
/usr/local/bin/fmc -c /usr/local/dpdk/dpaa/usdpaa_config_ls1043.xml -p /usr/local/dpdk/dpaa/usdpaa_policy_hash_ipv4_1queue.xml  -a

- l2fwd command :
l2fwd -c 0xf -n 1 -- -p 0xf -q 1 -T 0

Please check. Thank you.

Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

1,433 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello 克祥 黄,

I didn't find obvious problem in your description, please check the package catching tool on the PC.

In addition, no need to run "/usr/local/share/dpdk/usertools/dpdk-setup.sh"

Please refer to the following procedure which I got from the testing team.

#cat /proc/cmdline
root=/dev/mmcblk0p4 rootdelay=5 rw console=ttyS0,115200 ramdisk_size=0x10000000 bportals=s0 qportals=s0 isolcpus=1-3 default_hugepagesz=2MB hugepagesz=2MB hugepages=448 nmi_watchdog=0 rcupdate.rcu_cpu_stall_suppress=1

# umount -l /mnt/hugepages
umount: /mnt/hugepages: not mounted.
# mkdir -p /mnt/hugepages

# mount -t hugetlbfs none /mnt/hugepages

# export DPAA_FMC_MODE=1
# fmc -c /root/dpdkfiles/usdpaa_config_ls1043.xml -p /root/dpdkfiles/usdpaa_policy_hash_ipv4_1queue.xml -a

# export DPAA_NUM_RX_QUEUES=1

# /root/dpdkfiles/l2fwd -v -c 0xc -n 1 -- -p 0xc
EAL: Detected 4 lcore(s)
EAL: RTE Version: 'DPDK 17.11.2'
EAL: DPAA Bus Detected
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: PCI device 0001:01:00.0 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:10d3 net_e1000_em
PMD: Using FMC script mode,Make sure to use DPDK supported FMC scripts only.
PMD: net: dpaa: fm1-mac1: 00:e0:0c:00:73:00
PMD: net: dpaa: fm1-mac2: 00:e0:0c:00:73:01
PMD: net: dpaa: fm1-mac3: 00:e0:0c:00:73:02
PMD: net: dpaa: fm1-mac4: 00:e0:0c:00:73:03
PMD: net: dpaa: fm1-mac5: 00:e0:0c:00:73:04
PMD: net: dpaa: fm1-mac6: 00:e0:0c:00:73:05
PMD: net: dpaa: fm1-mac9: 00:e0:0c:00:73:06
PMD: dpaa_sec-7 cryptodev init
PMD: dpaa_sec-8 cryptodev init
PMD: dpaa_sec-9 cryptodev init
PMD: dpaa_sec-10 cryptodev init
MAC updating enabled
Lcore 2: RX port 2
Lcore 3: RX port 3
Skipping disabled port 0
Skipping disabled port 1
Initializing port 2... done:
Port 2, MAC address: 00:E0:0C:00:73:02

Initializing port 3... done:
Port 3, MAC address: 00:E0:0C:00:73:03

Skipping disabled port 4
Skipping disabled port 5
Skipping disabled port 6

Checking link statusdone
Port2 Link Up. Speed 1000 Mbps - full-duplex
Port3 Link Up. Speed 1000 Mbps - full-duplex
L2FWD: entering main loop on lcore 3
L2FWD:  -- lcoreid=3 portid=3
L2FWD: entering main loop on lcore 2
L2FWD:  -- lcoreid=2 portid=2

Thanks,

Yiping

0 Kudos
Reply