Running Dpdk Test Applications; Testpmd Application - Chelsio Communications DPDK Installation And User Manual

Driver for linux
Table of Contents

Advertisement

Chapter 6. Running DPDK Test Applications

6. Running DPDK Test Applications

6.1.

Testpmd application

The Testpmd application is provided as a part of the Chelsio DPDK driver package, and can be
used to test the DPDK in a packet forwarding mode and also to access NIC hardware features
such as Flow Director.
6.1.1. Syntax
Execute the following command to test DPDK using the Testpmd application:
[root@host~]# testpmd -c <coremask> -n <channels> -- -i --nb-cores=<cores> -
-txq=<TxQueue> --rxq=<RxQueue> --max-pkt-len=<PacketSize>
Where,
-c <coremask>
-n <channels>
-i
--nb-cores=<cores>
--txq=<TxQueue>
--rxq=<RxQueue>
--max-pkt-len=<PacketSize>
In case of POWERPC64, if testpmd is not initializing, reallocate the huge pages
Note
using the setup script "setup.sh" present in <driver-package>/src/DPDK/tools/
directory.
6.1.2. Examples
i.
To run traffic using single Tx and Rx queue:
[root@host~]# testpmd -c f -n 4 -- -i --nb-cores=2 --txq=1 --rxq=1
ii. To run traffic using 4 Tx and Rx queues:
[root@host~]# testpmd -c 3ff -n 4 -- -i --nb-cores=8 --txq=4 --rxq=4
Chelsio DPDK Driver for Linux
: A hexadecimal bit mask of the cores to run on. Note that core
numbering can change between platforms and should be
determined beforehand.
: Number of memory channels per processor socket.
: Enable interactive mode.
: Number of forwarding cores.
: Number of Tx queues.
: Number of Rx queues.
: Enable Jumbo mode and specify the packet size allowed for
forwarding.
17

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DPDK and is the answer not in the manual?

Questions and answers

Table of Contents