From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0123BA0093; Thu, 10 Mar 2022 08:53:35 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ECB2A41141; Thu, 10 Mar 2022 08:53:34 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 7C72A410DD for ; Thu, 10 Mar 2022 08:53:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646898813; x=1678434813; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=IRmhWTX4HhTMywVez49bO0jF6G8gTqxVMeA11iFpuTs=; b=be0QKRhVTHeVmfycAtVhoxOk9YGs4d1TRZjTM73lGMKA4s8i7pVzw1lq AxOhCC902ANGp2in9z5d5g544CDYhzM8wLtA6KeI4looTstXITkWXNYvQ ysX2omIaFUdOqPWTA852RrelDg2f45jUtHczIrFrIqLgmkG8YYP38HnKN rpuSomKoBZOOe1tMDuCkyehG0rFTppfROkqnBUfRgsDIurJ/Ncl82ME9P FDBOI+cSlFQSBQWy0GaReIpiOZcn6ecyjhdGExESi83sLu90i2VUAB1Zr PFBqdRQ/QJ5rTJzgDHsIMpU2RWgalMVmwnzkolwfLrWeAwa2Hvmz+f6tn g==; X-IronPort-AV: E=McAfee;i="6200,9189,10281"; a="254016443" X-IronPort-AV: E=Sophos;i="5.90,169,1643702400"; d="scan'208";a="254016443" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2022 23:53:32 -0800 X-IronPort-AV: E=Sophos;i="5.90,169,1643702400"; d="scan'208";a="688579292" Received: from unknown (HELO localhost.localdomain) ([10.239.251.222]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2022 23:53:31 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 2/2] tests/vswitch_sample_cbdma: modify testsuite by DPDK change Date: Thu, 10 Mar 2022 15:53:27 +0800 Message-Id: <20220310075327.493863-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 By DPDK commit 917229c24e, no need to modify DPDK code to test. 1.Delete modify DPDK code steps. 2.Add --total-num-mbufs 600000 params when start dpdk-vhost. 3.Modify verify the test result expect value. Signed-off-by: Wei Ling --- tests/TestSuite_vswitch_sample_cbdma.py | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/tests/TestSuite_vswitch_sample_cbdma.py b/tests/TestSuite_vswitch_sample_cbdma.py index bd41135b..a332214f 100644 --- a/tests/TestSuite_vswitch_sample_cbdma.py +++ b/tests/TestSuite_vswitch_sample_cbdma.py @@ -54,7 +54,7 @@ class TestVswitchSampleCBDMA(TestCase): """ Run at the start of each test suite. """ - self.set_max_queues(512) + #self.set_max_queues(512) self.build_vhost_app() self.tester_tx_port_num = 1 self.dut_ports = self.dut.get_ports() @@ -141,15 +141,15 @@ class TestVswitchSampleCBDMA(TestCase): allow_option += ' -a {}'.format(item) if with_cbdma: if client_mode: - params = (" -c {} -n {} {} -- -p 0x1 --mergeable 1 --vm2vm 1 --dma-type ioat --stats 1 " - + socket_file_param + "--dmas [{}] --client").format(self.vhost_core_mask, self.mem_channels, + params = (" -c {} -n {} {} -- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 " + + socket_file_param + "--dmas [{}] --client --total-num-mbufs 600000").format(self.vhost_core_mask, self.mem_channels, allow_option, self.dmas_info) else: - params = (" -c {} -n {} {} -- -p 0x1 --mergeable 1 --vm2vm 1 --dma-type ioat --stats 1 " - + socket_file_param + "--dmas [{}]").format(self.vhost_core_mask, self.mem_channels, + params = (" -c {} -n {} {} -- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 " + + socket_file_param + "--dmas [{}] --total-num-mbufs 600000").format(self.vhost_core_mask, self.mem_channels, allow_option, self.dmas_info) else: - params = (" -c {} -n {} {} -- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 " + socket_file_param).format( + params = (" -c {} -n {} {} -- -p 0x1 --mergeable 1 --vm2vm 1 --stats 1 " + socket_file_param + "--total-num-mbufs 600000").format( self.vhost_core_mask, self.mem_channels, allow_option) self.command_line = self.app_path + params self.vhost_user.send_command(self.command_line) @@ -589,15 +589,9 @@ class TestVswitchSampleCBDMA(TestCase): self.result_table_add(table_row) self.result_table_print() for key in before_relunch_result.keys(): - if key == 64: - self.verify(before_relunch_result[key] > 1, "The perf test result is lower than 1 Mpps") - else: - self.verify(before_relunch_result[key] > 0.1, "The perf test result is lower than 0.1 Mpps") + self.verify(before_relunch_result[key] > 0.1, "The perf test result is lower than 0.1 Mpps") for key in after_relunch_result.keys(): - if key == 64: - self.verify(after_relunch_result[key] > 1, "The perf test result is lower than 1 Mpps") - else: - self.verify(after_relunch_result[key] > 0.1, "The perf test result is lower than 0.1 Mpps") + self.verify(after_relunch_result[key] > 0.1, "The perf test result is lower than 0.1 Mpps") def vm2vm_check_with_two_vhost_device(self): rx_throughput = {} @@ -828,5 +822,5 @@ class TestVswitchSampleCBDMA(TestCase): """ Run after each test suite. """ - self.set_max_queues(128) + #self.set_max_queues(128) self.close_all_session() -- 2.25.1