[V1] tests/TestSuite_perf_vm2vm_virtio_net_perf: Adapt dpdk changes
diff mbox series

Message ID 20201027113311.1310844-1-yux.jiang@intel.com
State Accepted
Headers show
Series
  • [V1] tests/TestSuite_perf_vm2vm_virtio_net_perf: Adapt dpdk changes
Related show

Commit Message

Jiang, YuX Oct. 27, 2020, 11:33 a.m. UTC
From: JiangYu <yux.jiang@intel.com>

Based on DPDK commit e8a83681f: Enable MEMCPY_AVX512 as before.

Signed-off-by: JiangYu <yux.jiang@intel.com>
---
 tests/TestSuite_perf_vm2vm_virtio_net_perf.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Jiang, YuX Oct. 27, 2020, 3:39 a.m. UTC | #1
Tested-by: JiangYuX <yux.jiang@intel.com>

    Best Regards
    Jiang yu


> -----Original Message-----
> From: JiangYuX [mailto:yux.jiang@intel.com]
> Sent: Tuesday, October 27, 2020 7:33 PM
> To: dts@dpdk.org
> Cc: Jiang, YuX <yux.jiang@intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_perf_vm2vm_virtio_net_perf:
> Adapt dpdk changes
Ma, LihongX Oct. 29, 2020, 7:37 a.m. UTC | #2
Acked-by: Lihong Ma<lihongx.ma@intel.com>

Regards,
Ma,lihong

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of JiangYuX
> Sent: Tuesday, October 27, 2020 7:33 PM
> To: dts@dpdk.org
> Cc: Jiang, YuX <yux.jiang@intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_perf_vm2vm_virtio_net_perf: Adapt
> dpdk changes
> 
> From: JiangYu <yux.jiang@intel.com>
> 
> Based on DPDK commit e8a83681f: Enable MEMCPY_AVX512 as before.
> 
> Signed-off-by: JiangYu <yux.jiang@intel.com>
> ---
Tu, Lijuan Nov. 3, 2020, 2:22 a.m. UTC | #3
> > Based on DPDK commit e8a83681f: Enable MEMCPY_AVX512 as before.
> >
> > Signed-off-by: JiangYu <yux.jiang@intel.com>
> Acked-by: Lihong Ma<lihongx.ma@intel.com>

Applied

Patch
diff mbox series

diff --git a/tests/TestSuite_perf_vm2vm_virtio_net_perf.py b/tests/TestSuite_perf_vm2vm_virtio_net_perf.py
index 4bf86c5..7116eec 100644
--- a/tests/TestSuite_perf_vm2vm_virtio_net_perf.py
+++ b/tests/TestSuite_perf_vm2vm_virtio_net_perf.py
@@ -76,6 +76,8 @@  class TestPerfVM2VMVirtioNetPerf(TestCase):
         self.json_obj = dict()
         self.save_result_flag = True
         self.path=self.dut.apps_name['test-pmd']
+        if self.dut.build_type == 'meson':
+            self.build_pmd_bond(self.dut)
 
     def set_up(self):
         """
@@ -91,6 +93,13 @@  class TestPerfVM2VMVirtioNetPerf(TestCase):
         self.table_header = ['Mode', 'Type', 'TXD/RXD', 'Throughput', 'Expected Throughput',
                              'Throughput Difference']
 
+    def build_pmd_bond(self, user_dut):
+        user_dut.set_build_options({'RTE_MEMCPY_AVX512': 'y'})
+        user_dut.build_install_dpdk(self.target)
+
+    def restore_env(self, user_dut):
+        user_dut.build_install_dpdk(self.target)
+
     def handle_expected(self):
         """
         Update expected numbers to configurate file: conf/$suite_name.cfg
@@ -364,5 +373,7 @@  class TestPerfVM2VMVirtioNetPerf(TestCase):
         Run after each test suite.
 
         """
+        if self.dut.build_type == 'meson':
+            self.restore_env(self.dut)
         if getattr(self, 'vhost', None):
             self.dut.close_session(self.vhost)