Advantech FWA-T011 Getting Started Manual page 48

Quickstart linux image
Hide thumbs Also See for FWA-T011:
Table of Contents

Advertisement

needs to be one of CPU cores which are assigned for Tx and Rx
transmission (the bit-masked ports, see below).
-c 0000000c: CPU cores ID 2 is dedicated for Rx and Tx on Port 0 (port 3). CPU
cores ID 3 is dedicated for Rx and Tx on Port 1 (port 4).
-n 3: memory channels = 3
-w 03:00.0 -w 04:00.0: i.e. PFA of port 3 and port 4
--socket-mem=512: The huge page was assigned as 2048MB in Step 2. Allocate 512MB for
l2fwd program as the other 512 MB had been reserved for pktgen
program.
--file-prefix=l2fwd: As pktgen and l2fwd use the same DPDK engine, we need to assign a
prefix label to make DPDK engine to differentiate them.
-p 0x3: enabled port mask
Users shall see the following log if running successfully:
Checking link status.................................................done
Port0 Link Up. Speed 1000 Mbps - full-duplex
Port1 Link Up. Speed 1000 Mbps - full-duplex
L2FWD: entering main loop on lcore 3
L2FWD: -- lcoreid=3 portid=1
L2FWD: entering main loop on lcore 2
L2FWD: -- lcoreid=2 portid=0
Port statistics ====================================
Statistics for port 0 ------------------------------
Packets sent:
Packets received:
Packets dropped:
Statistics for port 1 ------------------------------
Packets sent:
Packets received:
Packets dropped:
Aggregate statistics ===============================
Total packets sent:
Total packets received:
Total packets dropped:
====================================================
Step 12 (Optional): Go back to Pktgen CLI window and configure below settings which
already described in previous section.
Pktgen > set 0 src ip 10.7.100.1/24
Pktgen > set 0 dst ip 10.7.101.1
Pktgen > set 0 size 64
Copyright 2017. All rights reserved. Advantech Co. Ltd.
0
0
0
0
0
0
0
0
0
Page 48

Advertisement

Table of Contents
loading

Table of Contents