Copyright 2017. All rights reserved. Advantech Co. Ltd.
Page 47
#lseth
[2018.07.17 07:32:25] [INFO] lseth g4 (2015-11-18 14:12:08)
OS:Linux 4.15.0-23-generic x86_64 2018-07-17 07:32:25
Detect System Ethernet Device Number :6
eth0_1 0000:01:00.0 c4:00:ad:a1:11:9a xx.xx.xx.xx 1000Mb/s
eth0_2 0000:02:00.0 c4:00:ad:a1:11:9b xx.xx.xx.xx 1000Mb/s
eth0_3 0000:03:00.0 c4:00:ad:a1:11:9c xx.xx.xx.xx 1000Mb/s
eth0_4 0000:04:00.0 c4:00:ad:a1:11:9d xx.xx.xx.xx 1000Mb/s
……< only parts of the messages are shown >…..
Step 7
: Configure the NIC ports which will be managed by DPDK
# ip link set <PORT 1> down
# ip link set <PORT 2>down
# ip link set <PORT 3> down
# ip link set <PORT 4> down
# dpdk-devbind-atom-latest.py -b igb_uio < PORT 1 PFA >
# dpdk-devbind-atom-latest.py -b igb_uio < PORT 2 PFA >
# dpdk-devbind-atom-latest.py -b igb_uio < PORT 3 PFA >
# dpdk-devbind-atom-latest.py -b igb_uio < PORT 4 PFA >
Step 8
: Make a soft link to current folder as running binary ‘pktgen-dpdk-wr-atom-latest’
requires this link
# ln -sf /root/bin/Pktgen-atom-latest.lua `pwd`/Pktgen.lua
Step 9
: Start Pktgen program
# pktgen-dpdk-wr-atom-latest --master-lcore <ID> -c < COREMASK > -n <CHANNELS > -w <
PORT 1 PFA > -w < PORT 2 PFA > --socket-mem=<MEM SIZE> --file-prefix=dpdk_pktgen -- -P -
T -m <MATRIX >
If the program runs successfully, users shall end up with Pktgen CLI (c.f. Figure 2934: Pktgen
CLI)
Step 10
: Open another SSH connection
Step 11
: start l2fwd program
# l2fwd-atom-latest --master-lcore <ID> -c < COREMASK > -n <CHANNELS > -w < PORT 3
PFA > -w < PORT 4 PFA > --socket-mem=<MEM SIZE> --file-prefix=l2fwd -- -p <PORTMASK>
Considering the command above is relatively complicate we use a dual Cpu sockets platform
as an example,
# l2fwd-atom-latest --master-lcore 2 -c 0000000c -n 3 -w 03:00.0 -w 04:00.0 --socket-
mem=512 --file-prefix=l2fwd -- -p 0x3
Parameters setting:
--master-lcore 2:The 3
th
logical CPU core (CPU ID 2) in NUMA node 0 is selected for
running l2fwd master process. Please note that the selected master core