summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2019-04-10 10:41:30 -0700
committerThomas Monjalon <thomas@monjalon.net>2019-04-22 13:20:33 +0200
commitbf5b2126bf44b2afa8ac579c03036acf9dacdcff (patch)
treec56dc86715be9dd4a4ae0d9ec5a8a28486c4d183 /doc
parent80bdf91dc8ee53c37e3f1f2264a882695cb626e6 (diff)
downloaddpdk-draft-windows-bf5b2126bf44b2afa8ac579c03036acf9dacdcff.zip
dpdk-draft-windows-bf5b2126bf44b2afa8ac579c03036acf9dacdcff.tar.gz
dpdk-draft-windows-bf5b2126bf44b2afa8ac579c03036acf9dacdcff.tar.xz
app/testpmd: add ability to set Tx IP and UDP parameters
This patch changes what testpmd uses as IP addresses when run in transmit only mode. The old code was using 192.168.0.1 -> 192.168.0.2 but these addresses are reserved for private Internet by RFC 1918. The new code uses 192.18.0.1 and 192.18.0.2 which are on the subnet reserved for performance testing by RFC 2544. New command line option allows the user to pick any other src/dst address desired. Notice: this changes the default IP address for transmit only. It may cause some user who has hardcoded network addresses to report a regression. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/guides/testpmd_app_ug/run_app.rst14
1 files changed, 13 insertions, 1 deletions
diff --git a/doc/guides/testpmd_app_ug/run_app.rst b/doc/guides/testpmd_app_ug/run_app.rst
index 89a097d..fdf6ec7 100644
--- a/doc/guides/testpmd_app_ug/run_app.rst
+++ b/doc/guides/testpmd_app_ug/run_app.rst
@@ -121,12 +121,24 @@ The command line options are:
XX:XX:XX:XX:XX:02
...
-
* ``--eth-peer=N,XX:XX:XX:XX:XX:XX``
Set the MAC address ``XX:XX:XX:XX:XX:XX`` of the peer port N,
where 0 <= N < ``CONFIG_RTE_MAX_ETHPORTS`` from the configuration file.
+* ``--tx-ip=SRC,DST``
+
+ Set the source and destination IP address used when doing transmit only test.
+ The defaults address values are source 192.18.0.1 and
+ destination 192.18.0.2. These are special purpose addresses
+ reserved for benchmarking (RFC 2544).
+
+* ``--tx-udp=SRC[,DST]``
+
+ Set the source and destination UDP port number for transmit test only test.
+ The default port is the port 9 which is defined for the discard protocol
+ (RFC 863).
+
* ``--pkt-filter-mode=mode``
Set Flow Director mode where mode is either ``none`` (the default), ``signature`` or ``perfect``.