The ntb sample application shows how to use ntb rawdev driver. This sample provides interactive mode to do packet based processing between two systems.
This sample supports 4 types of packet forwarding mode.
To compile the sample application see Compiling the Sample Applications.
The application is located in the ntb sub-directory.
The application requires an available core for each port, plus one. The only available options are the standard ones for the EAL:
./build/ntb_fwd -c 0xf -n 6 -- -i
Refer to the DPDK Getting Started Guide for general information on running applications and the Environment Abstraction Layer (EAL) options.
The application supports the following command-line options.
--buf-size=N
Set the data size of the mbufs used to N bytes, where N < 65536. The default value is 2048.
--fwd-mode=mode
Set the packet forwarding mode as file-trans, txonly, rxonly or iofwd.
--nb-desc=N
Set number of descriptors of queue as N, namely queue size, where 64 <= N <= 1024. The default value is 1024.
--txfreet=N
Set the transmit free threshold of TX rings to N, where 0 <= N <= the value of --nb-desc. The default value is 256.
--burst=N
Set the number of packets per burst to N, where 1 <= N <= 32. The default value is 32.
--qp=N
Set the number of queues as N, where qp > 0. The default value is 1.
The application is console-driven using the cmdline DPDK interface:
ntb>
From this interface the available commands and descriptions of what they do as follows: