[V1,2/2] tests/pvp_qemu_multi_paths_port_restart: optimization testsuite

Message ID 20221226022208.2470362-1-weix.ling@intel.com (mailing list archive)
State Accepted
Headers
Series optimization testplan |

Commit Message

Ling, WeiX Dec. 26, 2022, 2:22 a.m. UTC
  Add `-a 0000:04:00.0,vectorized=1` in virtio0.95 and virtio1.0
vector_rx path case.

Signed-off-by: Wei Ling <weix.ling@intel.com>
---
 tests/TestSuite_pvp_qemu_multi_paths_port_restart.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
  

Comments

Tu, Lijuan Dec. 26, 2022, 4:50 a.m. UTC | #1
On Mon, 26 Dec 2022 10:22:08 +0800, Wei Ling <weix.ling@intel.com> wrote:
> Add `-a 0000:04:00.0,vectorized=1` in virtio0.95 and virtio1.0
> vector_rx path case.
> 
> Signed-off-by: Wei Ling <weix.ling@intel.com>

Acked-by: Lijuan Tu <lijuan.tu@intel.com>
Series applied, thanks
  

Patch

diff --git a/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py b/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py
index 2b753eb1..f07b698f 100644
--- a/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py
+++ b/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py
@@ -101,8 +101,10 @@  class TestPVPQemuMultiPathPortRestart(TestCase):
             )
         elif path == "vector_rx":
             command = (
-                self.path + "-c 0x3 -n 3 -- -i " + "--nb-cores=1 --txd=1024 --rxd=1024"
-            )
+                self.path
+                + "-c 0x3 -n 3 -a %s,vectorized=1 -- -i "
+                + "--nb-cores=1 --txd=1024 --rxd=1024"
+            ) % self.vm_dut.get_port_pci(0)
         self.vm_dut.send_expect(command, "testpmd> ", 30)
         self.vm_dut.send_expect("set fwd mac", "testpmd> ", 30)
         self.vm_dut.send_expect("start", "testpmd> ", 30)