Copyright 2017. All rights reserved. Advantech Co. Ltd.
Page 40
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:
-T: enable the color output
-m <string>: Matrix for mapping ports to logical cores. The format of the port
mapping string is defined with a BNF-like grammar. For example,
“[rx_core:tx_core].port1_num,[rx_core:tx_core].port2_num” refers to which
cores will be used for port 1 and port 2 Tx/Rx transmission. See
https://pktgen-dpdk.readthedocs.io/en/latest/usage_pktgen.html
for more details.
-P: enable PROMISCUOUS mode on all ports
More complete usage can be found in
https://pktgen-dpdk.readthedocs.io/en/latest/running.html
.
3.9.2.2
Loopback Example for Running Pktgen
In our example, we will run loopback test with Pktgen. The port 1 and port 2 , two ports have
been connected through a patch cable. Please note that any two ports can be selected
arbitrarily as loopback testing ports. The packet flow is depicted as Figure 2732.
Figure 27: Loopback Example Test with Pktgen
Step 1
: Load kernel module and DPDK poll mode drivers
# modprobe uio
# insmod /root/library/drivers/igb_uio-atom-latest.ko