Chapter XXIV. DPDK Driver
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.
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 using
Note
the setup script "setup.sh" present in <driver-package>/src/DPDK/tools/ directory.
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 Unified Wire 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.
339
Need help?
Do you have a question about the Terminator Series and is the answer not in the manual?
Questions and answers