net/mlx5: add test for hot upgrade
PATCH 1/1 net/mlx5: add test for hot upgrade
This patch adds testpmd app a runtime function to test the hot upgrade API.
testpmd> mlx5 set flow_engine <0|1> (flag)
0 stands for active mode while 1 for standby mode.
--- doc/guides/nics/mlx5.rst | 10 ++++++ drivers/net/mlx5/mlx5_testpmd.c | 63 +++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+)
doc/guides/nics/mlx5.rst +10 -0
@@ -2057,3 +2057,13 @@ 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:: + testpmd> mlx5 set flow_engine <0|1> (flags) + +This command 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 +63 -0
75 lines not on this page · raw message
Signature · 1 line
2.27.0
Hi,
Quoted 8 lines
-----Original Message-----
From: Rongwei Liu <[email protected]>
Sent: Tuesday, May 16, 2023 8:42 AM
To: [email protected]; Matan Azrad <[email protected]>; Slava Ovsiienko <[email protected]>; Ori Kam <[email protected]>; NBU-Contact- Thomas Monjalon (EXTERNAL) <[email protected]>
Subject: [PATCH v1] net/mlx5: add test for hot upgrade
Quoted 8 lines
This patch adds testpmd app a runtime function to test the hot upgrade API.
testpmd> mlx5 set
flow_engine<0|1> (flag)
0 stands for active mode while 1 for standby mode.Signed-off-by Rongwei Liu <[email protected]>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
16/05/2023 07:41, Rongwei Liu:
Quoted 12 lines
This patch adds testpmd app a runtime function to test the hot upgrade API.
testpmd> mlx5 set
flow_engine<0|1> (flag)
0 stands for active mode while 1 for standby mode.Signed-off-by Rongwei Liu <[email protected]>---
doc/guides/nics/mlx5.rst where: · line 2062
Quoted 6 lines
doc/guides/nics/mlx5.rst +3
-0@@ -2057,3 +2057,13 @@ 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 +^^^^^^^^^^^^^^^^^^^^
The title is made as a sub-section of "port map external Rx queue", which looks wrong.
doc/guides/nics/mlx5.rst where: · line 2065
Quoted 3 lines
doc/guides/nics/mlx5.rst +3
-0+ +Set the flow engine to active(0) or standby(1) mode with specific flags:: + testpmd> mlx5 set flow_engine <0|1> (flags)
It should be said it is for testing live migration.
Also the flags are not described. Should we pass an integer?
doc/guides/nics/mlx5.rst where: · line 2069
Quoted 4 lines
doc/guides/nics/mlx5.rst +4
-0+ +This command works for software steering only. +Default FDB jump should be disabled if switchdev is enabled. +The mode will propagate to all the probed ports.
For the reasons above, I prefer not pulling this patch in the main branch.
Hi Thomas:
BR
Rongwei
Quoted 20 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Tuesday, June 27, 2023 04:23
To: Rongwei Liu <[email protected]>; Raslan Darawsheh <[email protected]>
Cc: [email protected]; Matan Azrad <[email protected]>; Slava Ovsiienko <[email protected]>; Ori Kam <[email protected]>; Maayan Kashani <[email protected]>
Subject: Re: [PATCH v1] net/mlx5: add test for hot upgradeExternal email: Use caution opening links or attachments
16/05/2023 07:41, Rongwei Liu:
Quoted 6 lines
This patch adds testpmd app a runtime function to test the hot upgrade API.
testpmd> mlx5 set
flow_engine<0|1> (flag)
0 stands for active mode while 1 for standby mode.
Quoted 16 lines
doc/guides/nics/mlx5.rst where: · line 2062
Quoted 12 lines
Signed-off-by Rongwei Liu <[email protected]>---
doc/guides/nics/mlx5.rst +3
-0@@ -2057,3 +2057,13 @@ 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 +^^^^^^^^^^^^^^^^^^^^The title is made as a sub-section of "port map external Rx queue", which looks wrong.
Will change the "^^^^" to "~~~~", totally in parallel with " port map external Rx queue "
Quoted 6 lines
doc/guides/nics/mlx5.rst where: · line 2065
Quoted 3 lines
doc/guides/nics/mlx5.rst +3
-0+ +Set the flow engine to active(0) or standby(1) mode with specific flags:: + testpmd> mlx5 set flow_engine <0|1> (flags)It should be said it is for testing live migration.
Sure.
Quoted 2 lines
Also the flags are not described. Should we pass an integer?
There is information to describe mode, like active(0)/standby(1).
Or we can change to this style: "mlx5 set flow_engine <active|standby> [<flag>]"
Quoted 7 lines
doc/guides/nics/mlx5.rst where: · line 2069
Quoted 4 lines
doc/guides/nics/mlx5.rst +4
-0+ +This command works for software steering only. +Default FDB jump should be disabled if switchdev is enabled. +The mode will propagate to all the probed ports.For the reasons above, I prefer not pulling this patch in the main branch.
This command line is a good starting point to play with mlx5 live migration feature. Keeping it is user-friendly per my view.