From patchwork Wed Nov 9 05:39:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 119588 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AF34CA0093; Wed, 9 Nov 2022 06:45:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AA5E040151; Wed, 9 Nov 2022 06:45:33 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 43578400D4 for ; Wed, 9 Nov 2022 06:45:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667972732; x=1699508732; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=cuRpkQxM9vYhNoZi9HRs+/t5g1xEiuACqMb3HEbdu4E=; b=T2ccFwUiVafYQiQntWIkBsxJ2sX67XRlTBZlw+2c3DNasVsFbd2pS520 M3nkHoB6CJ5MYg8IBKLlf6EEobxn18cDhYBzkRaMJ77aynlETKMloBHRO wbeuhVr7aZbs4efd9S3Rca2gv3veHzh8nlX22YG4pxPnQR57RRx+kFsZk rwA2bw6dYQkclXsjA7k1M+jEs8cihJ/nfIFcLbRHBYfiEd8uUJTkxv+Vb e8wgat6ZxGgy7Vz6oqaAHkf4eI+ckNF8heni+EPXq5asvBOcRqsJedU8y XvYp3Jh4yHK340R7VPOeoCygEt4OH9Y66+geldhq4KD5GJbdP7D1Ft+28 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10525"; a="312055709" X-IronPort-AV: E=Sophos;i="5.96,149,1665471600"; d="scan'208,223";a="312055709" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2022 21:45:31 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10525"; a="725839823" X-IronPort-AV: E=Sophos;i="5.96,149,1665471600"; d="scan'208,223";a="725839823" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2022 21:45:29 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 2/2] tests/vhost_virtio_user_interrupt_cbdma: modify the dmas parameter Date: Wed, 9 Nov 2022 13:39:07 +0800 Message-Id: <20221109053907.1207084-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 From DPDK-22.11, the dmas parameter have changed, so modify the dmas parameter in the testsuite. Signed-off-by: Wei Ling --- ...Suite_vhost_virtio_user_interrupt_cbdma.py | 40 ++++++++++--------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/tests/TestSuite_vhost_virtio_user_interrupt_cbdma.py b/tests/TestSuite_vhost_virtio_user_interrupt_cbdma.py index e3dc51a9..d9f8280c 100644 --- a/tests/TestSuite_vhost_virtio_user_interrupt_cbdma.py +++ b/tests/TestSuite_vhost_virtio_user_interrupt_cbdma.py @@ -175,10 +175,13 @@ class TestVirtioUserInterruptCbdma(TestCase): Test Case1: Split ring LSC event between vhost-user and virtio-user with cbdma enable """ self.get_cbdma_ports_info_and_bind_to_dpdk(cbdma_num=1) - lcore_dma = "lcore%s@%s" % (self.vhost_core_list[1], self.cbdma_list[0]) - vhost_param = "--lcore-dma=[%s]" % lcore_dma + dmas = "txq0@%s;rxq0@%s" % ( + self.cbdma_list[0], + self.cbdma_list[0], + ) + vhost_param = "" vhost_eal_param = ( - "--vdev 'net_vhost0,iface=vhost-net,queues=1,client=0,dmas=[txq0;rxq0]'" + "--vdev 'net_vhost0,iface=vhost-net,queues=1,client=0,dmas=[%s]'" % dmas ) ports = self.cbdma_list self.vhost_pmd.start_testpmd( @@ -214,15 +217,13 @@ class TestVirtioUserInterruptCbdma(TestCase): Test Case2: Split ring virtio-user interrupt test with vhost-user as backend and cbdma enable """ self.get_cbdma_ports_info_and_bind_to_dpdk(cbdma_num=2) - lcore_dma = "lcore%s@%s,lcore%s@%s" % ( - self.vhost_core_list[1], + dmas = "txq0@%s;rxq0@%s" % ( + self.cbdma_list[0], self.cbdma_list[0], - self.vhost_core_list[1], - self.cbdma_list[1], ) - vhost_param = "--rxq=1 --txq=1 --lcore-dma=[%s]" % lcore_dma + vhost_param = "--rxq=1 --txq=1" vhost_eal_param = ( - "--vdev 'net_vhost0,iface=vhost-net,queues=1,dmas=[txq0;rxq0]'" + "--vdev 'net_vhost0,iface=vhost-net,queues=1,dmas=[%s]'" % dmas ) ports = self.cbdma_list ports.append(self.dut.ports_info[0]["pci"]) @@ -258,10 +259,13 @@ class TestVirtioUserInterruptCbdma(TestCase): Test Case3: Packed ring LSC event between vhost-user and virtio-user with cbdma enable """ self.get_cbdma_ports_info_and_bind_to_dpdk(cbdma_num=1) - lcore_dma = "lcore%s@%s" % (self.vhost_core_list[1], self.cbdma_list[0]) - vhost_param = "--lcore-dma=[%s]" % lcore_dma + dmas = "txq0@%s;rxq0@%s" % ( + self.cbdma_list[0], + self.cbdma_list[0], + ) + vhost_param = "--tx-offloads=0x00" vhost_eal_param = ( - "--vdev 'net_vhost0,iface=vhost-net,queues=1,client=0,dmas=[txq0;rxq0]'" + "--vdev 'net_vhost0,iface=vhost-net,queues=1,client=0,dmas=[%s]'" % dmas ) ports = self.cbdma_list self.vhost_pmd.start_testpmd( @@ -296,16 +300,14 @@ class TestVirtioUserInterruptCbdma(TestCase): """ Test Case4: Packed ring virtio-user interrupt test with vhost-user as backend and cbdma enable """ - self.get_cbdma_ports_info_and_bind_to_dpdk(cbdma_num=2) - lcore_dma = "lcore%s@%s,lcore%s@%s" % ( - self.vhost_core_list[1], + self.get_cbdma_ports_info_and_bind_to_dpdk(cbdma_num=1) + dmas = "txq0@%s;rxq0@%s" % ( + self.cbdma_list[0], self.cbdma_list[0], - self.vhost_core_list[1], - self.cbdma_list[1], ) - vhost_param = "--rxq=1 --txq=1 --lcore-dma=[%s]" % lcore_dma + vhost_param = "--rxq=1 --txq=1" vhost_eal_param = ( - "--vdev 'net_vhost0,iface=vhost-net,queues=1,dmas=[txq0;rxq0]'" + "--vdev 'net_vhost0,iface=vhost-net,queues=1,dmas=[%s]'" % dmas ) ports = self.cbdma_list ports.append(self.dut.ports_info[0]["pci"])