From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 03093A04B5; Tue, 27 Oct 2020 04:32:35 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CEC1F1E2B; Tue, 27 Oct 2020 04:32:34 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id BF61B100C for ; Tue, 27 Oct 2020 04:32:32 +0100 (CET) IronPort-SDR: xvtx4Gij2cCAAR1yygCg5PJMCVjq+JFrgYbr3UTObzSIrHfuyRY0Q3ZCpsBda8A8zw8bRygn8M IXp7k14odn+A== X-IronPort-AV: E=McAfee;i="6000,8403,9786"; a="147305667" X-IronPort-AV: E=Sophos;i="5.77,422,1596524400"; d="scan'208";a="147305667" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2020 20:32:30 -0700 IronPort-SDR: XY4GhHkFPYzIQO1L8ykj5UJS6hP1kjCwnjrrgYFrXf8ZMWB+LGADPpyw+vCoPmUOqAtkU0Arza 1YjDVyLsUTsg== X-IronPort-AV: E=Sophos;i="5.77,422,1596524400"; d="scan'208";a="535622444" Received: from unknown (HELO localhost.localdomain) ([10.240.183.77]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2020 20:32:29 -0700 From: JiangYuX To: dts@dpdk.org Cc: JiangYu Date: Tue, 27 Oct 2020 11:33:11 +0000 Message-Id: <20201027113311.1310844-1-yux.jiang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1] tests/TestSuite_perf_vm2vm_virtio_net_perf: Adapt dpdk changes X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" From: JiangYu Based on DPDK commit e8a83681f: Enable MEMCPY_AVX512 as before. Signed-off-by: JiangYu --- tests/TestSuite_perf_vm2vm_virtio_net_perf.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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) -- 2.7.4