summaryrefslogtreecommitdiff
path: root/Documentation/topics
diff options
context:
space:
mode:
authorMaxime Coquelin <maxime.coquelin@redhat.com>2022-01-24 17:58:30 +0100
committerIlya Maximets <i.maximets@ovn.org>2022-01-31 21:38:19 +0100
commit0bca7fa1a3dd86bc75c7daf716b425289927feb7 (patch)
tree648ca336cfff6887d7a6dd2dd1cc66cada83e1f3 /Documentation/topics
parenta7f52b7eb657a004b466bd0f8888e5b563ae2b27 (diff)
downloadopenvswitch-0bca7fa1a3dd86bc75c7daf716b425289927feb7.tar.gz
Documentation: Fix userspace Tx steering section.
This patch fixes the thread mode part, as the static thread-to-txq mapping selection depends on whether the number of queues is strictly greater than the number of PMD threads, and not greater or equal. The section is also reworded as per Ilya's suggestion. Fixes: c18e707b2f25 ("dpif-netdev: Introduce hash-based Tx packet steering mode.") Reported-by: Kevin Traynor <ktraynor@redhat.com> Reported-by: Ilya Maximets <i.maximets@ovn.org> Acked-by: Kevin Traynor <ktraynor@redhat.com> Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'Documentation/topics')
-rw-r--r--Documentation/topics/userspace-tx-steering.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/Documentation/topics/userspace-tx-steering.rst b/Documentation/topics/userspace-tx-steering.rst
index 16f066a8a..3f39eeadb 100644
--- a/Documentation/topics/userspace-tx-steering.rst
+++ b/Documentation/topics/userspace-tx-steering.rst
@@ -33,15 +33,16 @@ Thread mode
This mode is automatically selected when the port's ``tx-steering`` option is
set to ``thread`` or unset.
-Depending on the port's number of Tx queues being greater or equal than the
-number of PMD threads, static txq mapping or XPS will be used.
+Thread mode enables static (1:1) thread-to-txq mapping when the number of Tx
+queues is greater than number of PMD threads, and dynamic (N:1) mapping if
+equal or lower. In this mode a single thread can not use more than 1 transmit
+queue of a given port.
This is the recommended mode for performance reasons if the number of Tx queues
-is greater or equal to the number of PMD threads, because the Tx lock is not
-acquired.
+is greater than the number of PMD threads, because the Tx lock is not acquired.
-If the number of Tx queues is greater than the number of threads, the remaining
-Tx queues will not be used.
+If the number of Tx queues is greater than the number of threads (including the
+main thread), the remaining Tx queues will not be used.
This mode is enabled by default.