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 331CB429F9; Wed, 26 Apr 2023 07:50:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9B08D410DC; Wed, 26 Apr 2023 07:50:01 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 8086040DDA for ; Wed, 26 Apr 2023 07:50:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682488200; x=1714024200; h=from:to:cc:subject:date:message-id; bh=nUiTyMw6/TeI+Kqu0sZoR2sgYZNnnsH2OecCQqE3mYw=; b=PgHglsAPJtRpA1/yRp49ZVSs59XE7OpG4nKhhuRqwYi6aukqpjYtYO2K njbLWD77j6BJdAl5EVsuQR2imaTMLUMV+8DhzcyTbnnZYx2fejIOeykJy Va5Dl6Y9wJCScneJ/YbM0/5EJSSnr8sZisEP5sjp2pn/EVshO8n8bZ8Tq /matq5LNGH69jU1n5pg6T8w4/wkGy3jtkhyCbd/f1XaSnqK5mIGiSCKJU y6jupXAVvqx/+leIlyZ5ndRaQxbYtRdGOJLXCTYB2vpee39kkBHDKxcH/ 0ZpOVTmZsf5qo090GBrpQhydocdgAda9cG6Sav6FeSppNW3m9EMG9zKs0 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10691"; a="344458552" X-IronPort-AV: E=Sophos;i="5.99,227,1677571200"; d="scan'208";a="344458552" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2023 22:49:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10691"; a="687802889" X-IronPort-AV: E=Sophos;i="5.99,227,1677571200"; d="scan'208";a="687802889" Received: from unknown (HELO localhost.localdomain) ([10.239.252.15]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2023 22:49:57 -0700 From: Dukai Yuan To: dts@dpdk.org Cc: Dukai Yuan Subject: [PATCH V2] tests/vhost_async_robust_cbdma: Optimize calling virtio_common API method Date: Wed, 26 Apr 2023 13:44:23 +0800 Message-Id: <20230426054423.16157-1-dukaix.yuan@intel.com> X-Mailer: git-send-email 2.17.1 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 The tests/virtio_common.py have been optimized, so modify this suite which calls the virtio_common API in cbdma_common() class. Signed-off-by: Dukai Yuan --- tests/TestSuite_vhost_async_robust_cbdma.py | 28 ++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/TestSuite_vhost_async_robust_cbdma.py b/tests/TestSuite_vhost_async_robust_cbdma.py index fda7cdfe..cd163fd8 100644 --- a/tests/TestSuite_vhost_async_robust_cbdma.py +++ b/tests/TestSuite_vhost_async_robust_cbdma.py @@ -58,7 +58,7 @@ class TestVhostAsyncRobustCbdma(TestCase): self.dut.send_expect("rm -rf ./vhost-net*", "#") self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#") self.dut.send_expect("killall -s INT qemu-system-x86_64", "#") - self.CC.bind_all_cbdma_to_kernel() + self.CC.bind_cbdma_to_kernel_driver() @property def check_2M_env(self): @@ -359,8 +359,8 @@ class TestVhostAsyncRobustCbdma(TestCase): """ Test Case 1: PVP virtio-user quit test """ - cdbmas = self.CC.bind_cbdma_to_dpdk( - cbdma_number=1, driver_name="vfio-pci", socket=self.ports_socket + cdbmas = self.CC.bind_cbdma_to_dpdk_driver( + cbdma_num=1, driver_name="vfio-pci", socket=self.ports_socket ) dmas = "txq0@%s;rxq0@%s" % (cdbmas[0], cdbmas[0]) vhost_eal_param = ( @@ -397,8 +397,8 @@ class TestVhostAsyncRobustCbdma(TestCase): """ Test Case 2: PVP vhost-user quit test """ - cdbmas = self.CC.bind_cbdma_to_dpdk( - cbdma_number=1, driver_name="vfio-pci", socket=self.ports_socket + cdbmas = self.CC.bind_cbdma_to_dpdk_driver( + cbdma_num=1, driver_name="vfio-pci", socket=self.ports_socket ) dmas = "txq0@%s;rxq0@%s" % (cdbmas[0], cdbmas[0]) vhost_eal_param = ( @@ -437,8 +437,8 @@ class TestVhostAsyncRobustCbdma(TestCase): """ Test Case 3: PVP vhost async test with redundant device parameters """ - cdbmas = self.CC.bind_cbdma_to_dpdk( - cbdma_number=4, driver_name="vfio-pci", socket=self.ports_socket + cdbmas = self.CC.bind_cbdma_to_dpdk_driver( + cbdma_num=4, driver_name="vfio-pci", socket=self.ports_socket ) dmas = "txq0@%s;rxq0@%s" % (cdbmas[1], cdbmas[1]) vhost_eal_param = ( @@ -472,8 +472,8 @@ class TestVhostAsyncRobustCbdma(TestCase): """ Test Case 4: Loopback vhost async test with each queue using 2 DMA devices """ - cdbmas = self.CC.bind_cbdma_to_dpdk( - cbdma_number=3, driver_name="vfio-pci", socket=self.ports_socket + cdbmas = self.CC.bind_cbdma_to_dpdk_driver( + cbdma_num=3, driver_name="vfio-pci", socket=self.ports_socket ) dmas = "txq0@%s;txq0@%s;rxq0@%s;rxq0@%s" % ( cdbmas[0], @@ -510,8 +510,8 @@ class TestVhostAsyncRobustCbdma(TestCase): """ Test Case 5: Loopback vhost async test with dmas parameters out of order """ - cdbmas = self.CC.bind_cbdma_to_dpdk( - cbdma_number=2, driver_name="vfio-pci", socket=self.ports_socket + cdbmas = self.CC.bind_cbdma_to_dpdk_driver( + cbdma_num=2, driver_name="vfio-pci", socket=self.ports_socket ) dmas = "rxq3@%s;txq0@%s;rxq1@%s;txq2@%s" % ( cdbmas[1], @@ -550,8 +550,8 @@ class TestVhostAsyncRobustCbdma(TestCase): """ Test Case 6: VM2VM split and packed ring mergeable path with cbdma enable and server mode """ - cdbmas = self.CC.bind_cbdma_to_dpdk( - cbdma_number=16, driver_name="vfio-pci", socket=-1 + cdbmas = self.CC.bind_cbdma_to_dpdk_driver( + cbdma_num=16, driver_name="vfio-pci", socket=-1 ) dmas1 = ( "txq0@%s;" @@ -690,7 +690,7 @@ class TestVhostAsyncRobustCbdma(TestCase): def tear_down(self): self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#") self.dut.send_expect("killall -s INT qemu-system-x86_64", "#") - self.CC.bind_all_cbdma_to_kernel() + self.CC.bind_cbdma_to_kernel_driver() def tear_down_all(self): self.close_all_session() -- 2.17.1