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 E28B1A058B; Wed, 25 Mar 2020 09:17:39 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DBD1C1C069; Wed, 25 Mar 2020 09:17:39 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id DE4482BAE for ; Wed, 25 Mar 2020 09:17:38 +0100 (CET) IronPort-SDR: gfoORDnOq0FVKUk07DHukuIe/qlvZEnpv/eCkcSGjrk6NRvFVXEQrQqsQgM+A8R3uql4vWVfYQ dpx3PdHk1Jeg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2020 01:17:38 -0700 IronPort-SDR: uvYO3NROkpxqf1+BmHOQxbicoTKbUjPUNyx85dYIJyF5tjZoSzgvM3bVL4bLzlLTHWCxDYXlwY mY3iz7UyGetw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,303,1580803200"; d="scan'208";a="282071814" Received: from unknown (HELO dpdk-zhaohy-t.sh.intel.com) ([10.240.183.68]) by fmsmga002.fm.intel.com with ESMTP; 25 Mar 2020 01:17:37 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Wed, 25 Mar 2020 16:10:54 +0800 Message-Id: <1585123857-130281-8-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1585123857-130281-1-git-send-email-qimaix.xiao@intel.com> References: <1585123857-130281-1-git-send-email-qimaix.xiao@intel.com> Subject: [dts] [PATCH V1 08/11]vhost_virtio_pmd_interrupt: update script according to testplan's update 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" Signed-off-by: Xiao Qimai --- tests/TestSuite_vhost_virtio_pmd_interrupt.py | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_vhost_virtio_pmd_interrupt.py b/tests/TestSuite_vhost_virtio_pmd_interrupt.py index 5e6437e..ca69932 100644 --- a/tests/TestSuite_vhost_virtio_pmd_interrupt.py +++ b/tests/TestSuite_vhost_virtio_pmd_interrupt.py @@ -117,7 +117,7 @@ class TestVhostVirtioPmdInterrupt(TestCase): # get the core list depend on current nb_cores number self.get_core_list() testcmd = self.dut.target + "/app/testpmd " - vdev = [r"'net_vhost0,iface=%s/vhost-net,queues=%d'" % (self.base_dir, self.queues)] + vdev = ['net_vhost0,iface=%s/vhost-net,queues=%d' % (self.base_dir, self.queues)] eal_params = self.dut.create_eal_parameters(cores=self.core_list, ports=[self.pci_info], vdevs=vdev) para = " -- -i --nb-cores=%d --rxq=%d --txq=%d --rss-ip" % (self.nb_cores, self.queues, self.queues) command_line_client = testcmd + eal_params + para @@ -166,7 +166,7 @@ class TestVhostVirtioPmdInterrupt(TestCase): if list(self.vm.params[i].keys())[0] == 'cpu': self.vm.params[i]['cpu'][0]['number'] = self.queues - def start_vms(self, mode=0): + def start_vms(self, mode=0, packed=False): """ start qemus """ @@ -177,7 +177,7 @@ class TestVhostVirtioPmdInterrupt(TestCase): vm_params['opt_path'] = '%s/vhost-net' % self.base_dir vm_params['opt_mac'] = "00:11:22:33:44:55" vm_params['opt_queue'] = self.queues - opt_param = "mrg_rxbuf=on,csum=on,mq=on,vectors=%d" % (2*self.queues+2) + opt_param = "mrg_rxbuf=on,csum=on,mq=on,vectors=%d" % (2*self.queues+2) if not packed else "mrg_rxbuf=on,csum=on,mq=on,vectors=%d,packed=on" % (2*self.queues+2) if mode == 0: vm_params['opt_settings'] = "disable-modern=true," + opt_param elif mode == 1: @@ -311,6 +311,19 @@ class TestVhostVirtioPmdInterrupt(TestCase): self.launch_l3fwd_power_in_vm() self.send_and_verify() + def test_perf_packed_ring_virtio_interrupt_with_16queues(self): + """ + wake up virtio_user 0.95 core with l3fwd-power sample + """ + self.queues = 16 + self.nb_cores = 16 + self.start_testpmd_on_vhost() + self.start_vms(mode=0, packed=True) + self.prepare_vm_env() + self.launch_l3fwd_power_in_vm() + self.send_and_verify() + + def tear_down(self): """ Run after each test case. -- 1.8.3.1