Skip to contentSkip to conversation

net/mlx5: add test for live migration

PATCH Superseded Rongwei Liu 1 participant 1 message Sep 19, 2023 Network drivers

v2 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 net/mlx5: add test for live migration

This patch adds testpmd app a runtime function to test the live migration API.

testpmd> mlx5 set flow_engine <active|standby> [<flag>]
Flag is optional.

---
 doc/guides/nics/mlx5.rst        |  14 ++++
 drivers/net/mlx5/mlx5_testpmd.c | 124 ++++++++++++++++++++++++++++++++
 2 files changed, 138 insertions(+)
doc/guides/nics/mlx5.rst +14 -0
index 7bee57d9dd..5726e497a8 100644
@@ -2179,3 +2179,17 @@ where:
 * ``sw_queue_id``: queue index in range [64536, 65535].
   This range is the highest 1000 numbers.
 * ``hw_queue_id``: queue index given by HW in queue creation.
+
+Set Flow Engine Mode
+~~~~~~~~~~~~~~~~~~~~
+
+Set the flow engine to active(0) or standby(1) mode with specific flags::
+
+.. code-block:: console
+
+   testpmd> mlx5 set flow_engine <active|standby> [<flags>]
+
+This command is used for testing live migration and works for
+software steering only.
+Default FDB jump should be disabled if switchdev is enabled.
+The mode will propagate to all the probed ports.
drivers/net/mlx5/mlx5_testpmd.c +124 -0

142 lines not on this page · raw message

Signature · 1 line
2.27.0