app/testpmd: Document what the application does.
PATCH v2 1/1 app/testpmd: Document what the application does.
I could not find anything in the documentation that says what testpmd does. This should save other people time trying to figure that out in the future.
---v1->v2: Revise introduction instead of option documentation.
Thanks to Thomas Monjalon for advice.
doc/guides/testpmd_app_ug/intro.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
doc/guides/testpmd_app_ug/intro.rst +7 -3
@@ -6,9 +6,13 @@ Introduction This document is a user guide for the ``testpmd`` example application that is shipped as part of the Data Plane Development Kit. -The ``testpmd`` application can be used to test the DPDK in a packet forwarding mode -and also to access NIC hardware features such as Flow Director. -It also serves as a example of how to build a more fully-featured application using the DPDK SDK. +``testpmd`` is a tool to test ethdev NIC features, including NIC +hardware features such as Flow Director. It receives packets on each +configured port and forwards them. By default, packets received on +port 0 are forwarded to port 1, and vice versa, and similarly for +ports 2 and 3, ports 4 and 5, and so on. If an odd number of ports is +configured, packets received on the last port are sent back out on the +same port. The guide shows how to build and run the testpmd application and how to configure the application from the command line and the run-time environment.
Signature · 1 line
2.31.1
13/09/2021 20:33, Ben Pfaff:
Quoted 5 lines
I could not find anything in the documentation that says what testpmd does. This should save other people time trying to figure that out in the future.
Signed-off-by Ben Pfaff <[email protected]>
[...]
doc/guides/testpmd_app_ug/intro.rst Introduction · line 10
Quoted 11 lines
doc/guides/testpmd_app_ug/intro.rst +2
-3@@ -6,9 +6,13 @@ Introduction This document is a user guide for the ``testpmd`` example application that is shipped as part of the Data Plane Development Kit. -The ``testpmd`` application can be used to test the DPDK in a packet forwarding mode -and also to access NIC hardware features such as Flow Director. -It also serves as a example of how to build a more fully-featured application using the DPDK SDK. +``testpmd`` is a tool to test ethdev NIC features, including NIC +hardware features such as Flow Director. It receives packets on each
Not sure about keep mentioning Flow Director which is an Intel name for an internal feature used through rte_flow rules. What others think? Do we have better examples of hardware offload?
Quoted 8 lines
doc/guides/testpmd_app_ug/intro.rst +5
-0+configured port and forwards them. By default, packets received on +port 0 are forwarded to port 1, and vice versa, and similarly for +ports 2 and 3, ports 4 and 5, and so on. If an odd number of ports is +configured, packets received on the last port are sent back out on the +same port. The guide shows how to build and run the testpmd application and how to configure the application from the command line and the run-time environment.
Quoted 14 lines · Thomas Monjalon
13/09/2021 20:33, Ben Pfaff:
Quoted 5 lines
I could not find anything in the documentation that says what testpmd does. This should save other people time trying to figure that out in the future.
Signed-off-by Ben Pfaff <[email protected]>[...]
Quoted 6 lines
doc/guides/testpmd_app_ug/intro.rst +0
-0@@ -6,9 +6,13 @@ Introduction This document is a user guide for the ``testpmd`` example application that is shipped as part of the Data Plane Development Kit.
Quoted 9 lines
doc/guides/testpmd_app_ug/intro.rst Introduction · line 10
Quoted 5 lines
doc/guides/testpmd_app_ug/intro.rst +2
-3-The ``testpmd`` application can be used to test the DPDK in a packet forwarding mode -and also to access NIC hardware features such as Flow Director. -It also serves as a example of how to build a more fully-featured application using the DPDK SDK. +``testpmd`` is a tool to test ethdev NIC features, including NIC +hardware features such as Flow Director. It receives packets on eachNot sure about keep mentioning Flow Director which is an Intel name for an internal feature used through
rte_flowrules. What others think? Do we have better examples of hardware offload?
We could use RSS and RFS.
I think Receive Side Scaling and Receive Flow Steering would cover the intended offloads.
Quoted 12 lines
Quoted 9 lines
doc/guides/testpmd_app_ug/intro.rst +5
-0+configured port and forwards them. By default, packets received on +port 0 are forwarded to port 1, and vice versa, and similarly for +ports 2 and 3, ports 4 and 5, and so on. If an odd number of ports is +configured, packets received on the last port are sent back out on the +same port. The guide shows how to build and run the testpmd application and how to configure the application from the command line and the run-time environment.
Quoted 26 lines · Ajit Khaparde
Quoted 14 lines · Thomas Monjalon
13/09/2021 20:33, Ben Pfaff:
Quoted 5 lines
I could not find anything in the documentation that says what testpmd does. This should save other people time trying to figure that out in the future.
Signed-off-by Ben Pfaff <[email protected]>[...]
Quoted 6 lines
doc/guides/testpmd_app_ug/intro.rst +0
-0@@ -6,9 +6,13 @@ Introduction This document is a user guide for the ``testpmd`` example application that is shipped as part of the Data Plane Development Kit.Quoted 9 lines
doc/guides/testpmd_app_ug/intro.rst Introduction · line 10
Quoted 5 lines
doc/guides/testpmd_app_ug/intro.rst +2
-3-The ``testpmd`` application can be used to test the DPDK in a packet forwarding mode -and also to access NIC hardware features such as Flow Director. -It also serves as a example of how to build a more fully-featured application using the DPDK SDK. +``testpmd`` is a tool to test ethdev NIC features, including NIC +hardware features such as Flow Director. It receives packets on eachNot sure about keep mentioning Flow Director which is an Intel name for an internal feature used through
rte_flowrules. What others think? Do we have better examples of hardware offload?
Quoted 3 lines
We could use RSS and RFS.
I think Receive Side Scaling and Receive Flow Steering would cover the intended offloads.
I forgot to mention RPS - Receive Packet Steering.
Quoted 13 lines
Quoted 13 lines
Quoted 10 lines
doc/guides/testpmd_app_ug/intro.rst +5
-0+configured port and forwards them. By default, packets received on +port 0 are forwarded to port 1, and vice versa, and similarly for +ports 2 and 3, ports 4 and 5, and so on. If an odd number of ports is +configured, packets received on the last port are sent back out on the +same port. The guide shows how to build and run the testpmd application and how to configure the application from the command line and the run-time environment.
Quoted 21 lines · Ben Pfaff
I could not find anything in the documentation that says what testpmd does. This should save other people time trying to figure that out in the future.
Signed-off-by Ben Pfaff <[email protected]>---
v1->v2: Revise introduction instead of option documentation.
Thanks to Thomas Monjalon for advice.doc/guides/testpmd_app_ug/intro.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)doc/guides/testpmd_app_ug/intro.rst +0
-1@@ -6,9 +6,13 @@ Introduction This document is a user guide for the ``testpmd`` example application that is shipped as part of the Data Plane Development Kit. -The ``testpmd`` application can be used to test the DPDK in a packet forwarding mode
doc/guides/testpmd_app_ug/intro.rst Introduction · line 16
Quoted 10 lines
doc/guides/testpmd_app_ug/intro.rst +7
-2-and also to access NIC hardware features such as Flow Director. -It also serves as a example of how to build a more fully-featured application using the DPDK SDK. +``testpmd`` is a tool to test ethdev NIC features, including NIC +hardware features such as Flow Director. It receives packets on each +configured port and forwards them. By default, packets received on +port 0 are forwarded to port 1, and vice versa, and similarly for +ports 2 and 3, ports 4 and 5, and so on. If an odd number of ports is +configured, packets received on the last port are sent back out on the +same port.
Ahh, I missed that there is a v2, I already commented on the first version.
Just to summarize here, I think documenting a specific forwarding engine and specific configuration of it as what 'testpmd' does can be misleading.
What about making it a little more generic and provide link for more details,
like: https://doc.dpdk.org/guides/testpmd_app_ug/testpmd_funcs.html#set-fwd
Quoted 3 lines
doc/guides/testpmd_app_ug/intro.rst +0
-0The guide shows how to build and run the testpmd application and how to configure the application from the command line and the run-time environment.