2020-03-02 17:36:41 +00:00
|
|
|
.. SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
Copyright(c) 2020 Intel Corporation.
|
|
|
|
|
|
|
|
NULL Poll Mode Driver
|
|
|
|
=====================
|
|
|
|
|
|
|
|
NULL PMD is a simple virtual driver mainly for testing. It always returns success for all packets for Rx/Tx.
|
|
|
|
|
|
|
|
On Rx it returns requested number of empty packets (all zero). On Tx it just frees all sent packets.
|
|
|
|
|
|
|
|
|
|
|
|
Usage
|
|
|
|
-----
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
2020-10-21 08:17:13 +00:00
|
|
|
./<build_dir>/app/dpdk-testpmd -l 0-3 -n 4 --vdev net_null0 --vdev net_null1 -- -i
|
2020-03-02 17:36:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
Runtime Config Options
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
- ``copy`` [optional, default disabled]
|
|
|
|
|
|
|
|
It copies data of the packet before Rx/Tx. For Rx it uses another empty dummy mbuf for this.
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
2020-10-21 08:17:13 +00:00
|
|
|
./<build_dir>/app/dpdk-testpmd -l 0-3 -n 4 --vdev "net_null0,copy=1" -- -i
|
2020-03-02 17:36:41 +00:00
|
|
|
|
|
|
|
- ``size`` [optional, default=64 bytes]
|
|
|
|
|
|
|
|
Custom packet length value to use.r
|
|
|
|
If ``copy`` is enabled, this is the length of copy operation.
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
2020-10-21 08:17:13 +00:00
|
|
|
./<build_dir>/app/dpdk-testpmd -l 0-3 -n 4 --vdev "net_null0,size=256" -- -i
|
2020-03-02 17:36:41 +00:00
|
|
|
|
2020-03-02 17:36:45 +00:00
|
|
|
- ``no-rx`` [optional, default disabled]
|
|
|
|
|
|
|
|
Makes PMD more like ``/dev/null``. On Rx no packets received, on Tx all packets are freed.
|
|
|
|
This option can't co-exist with ``copy`` option.
|