Command Usage Of L2Fwd; L2Fwd Example With Running Pktgen; Figure 32: L2 Forwarding With Pktgen - Advantech FWA-T011 Getting Started Manual

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

Advertisement

3.9.3.1 Command Usage of L2fwd

The l2fwd program calls the same DPDK engine to perform L2 forwarding. The l2fwd splits its
command line arguments into arguments for the EAL and arguments for the application
itself. The first group is a list of EAL options that are common to all DPDK based applications.
The second group of options are application specific. The two sets of arguments are
separated using the standard convention of -- as shown below.
# l2fwd-atom-latest [EAL options] -- -p PORTMASK [-q NQ]
Here is the usage of EAL and application arguments which are used in our examples:
EAL options:
--master-lcore <ID>: Core ID which is used as master. Note that the master core
should be used for handing Tx or Rx packets transmission.
-c <COREMASK>: a hexadecimal bitmask of the cores to run on
-n <CHANNELS>: number of memory channels
-w, --pci-whitelist: Add a PCI device in white list. Only use the specified PCI
devices. The argument format is <[domain:]bus:devid.func>. This option can be
present several times (once per device).
--socket-mem: memory to allocate on specific sockets (use comma separated
values)
--file-prefix: prefix for hugepage filenames
Application options:
-p <PORTMASK>: designated port ID according to PCIe devices assigned
More complete usage can be found in:
https://dpdk.org/doc/guides-18.02/sample_app_ug/l2_forward_real_virtual.html

3.9.3.2 L2fwd Example with Running Pktgen

Steps 1 to 5: Repeat the same steps described in DPDK Pktgen section .
Step 6: Find the PFA addresses of the following devices: Port 1, Port 2, Port 3 and Port 4.
(The following command output is only an example)
Copyright 2017. All rights reserved. Advantech Co. Ltd.

Figure 32: L2 Forwarding with Pktgen

Page 46

Advertisement

Table of Contents
loading

Table of Contents