summaryrefslogtreecommitdiff
path: root/config/common_bsdapp
diff options
context:
space:
mode:
authorTetsuya Mukawa <mukawa@igel.co.jp>2015-02-23 14:12:34 +0900
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-02-26 00:31:45 +0100
commitc743e50c475f73edf78e5ba26445d7c6ea217f40 (patch)
treeb63af88bf0728c0afc1588cc7537365ff0b97a47 /config/common_bsdapp
parentedab33b1c01d508fdd934c06ee27f84250d2749a (diff)
downloaddpdk-c743e50c475f73edf78e5ba26445d7c6ea217f40.zip
dpdk-c743e50c475f73edf78e5ba26445d7c6ea217f40.tar.gz
dpdk-c743e50c475f73edf78e5ba26445d7c6ea217f40.tar.xz
null: new poll mode driver
Null PMD is a driver of the virtual device particularly designed to measure performance of DPDK PMDs. When an application call rx, Null PMD just allocates mbufs and returns those. Also tx, the PMD just frees mbufs. The PMD has following options. - size: specify packe size allocated by RX. Default packet size is 64. - copy: specify 1 or 0 to enable or disable copy while RX and TX. Default value is 0(disabled). This option is used for emulating more realistic data transfer. Copy size is equal to packet size. To use the PMD, enable CONFIG_RTE_BUILD_SHARED_LIB in config file. Then compile the PMD as shared library. The library can be linked using '-d' option when an application invokes. Here is an example. $ sudo ./testpmd -c f -n 4 -d librte_pmd_null.so \ --vdev 'eth_null0' --vdev 'eth_null1' -- -i --no-flush-rx If testpmd is compiled with CONFIG_RTE_BUILD_SHARED_LIB, it may need to specify more libraries using '-d' option. Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
Diffstat (limited to 'config/common_bsdapp')
-rw-r--r--config/common_bsdapp5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/common_bsdapp b/config/common_bsdapp
index 1672998..8ff4dc2 100644
--- a/config/common_bsdapp
+++ b/config/common_bsdapp
@@ -255,6 +255,11 @@ CONFIG_RTE_LIBRTE_BOND_DEBUG_ALB=n
CONFIG_RTE_LIBRTE_BOND_DEBUG_ALB_L1=n
#
+# Compile null PMD
+#
+CONFIG_RTE_LIBRTE_PMD_NULL=y
+
+#
# Do prefetch of packet data within PMD driver receive function
#
CONFIG_RTE_PMD_PACKET_PREFETCH=y