[dpdk-dev] [PATCH v2] librte_pmd_null: Add null PMD
thomas.monjalon at 6wind.com
Thu Nov 13 13:17:55 CET 2014
2014-10-01 13:57, mukawa at igel.co.jp:
> 'null PMD' is a driver of the virtual device particulary 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(disbaled).
> 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
> 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 at igel.co.jp>
This patch is still pending because nobody reviewed it.
More information about the dev