net/mlx5: add test for live migration
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.
Signed-off-by Rongwei Liu <[email protected]>
Acked-by Ori Kam <[email protected]>
--- 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
@@ -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