From patchwork Wed Nov 9 05:38:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 119587 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 8576EA0093; Wed, 9 Nov 2022 06:45:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7F9334014F; Wed, 9 Nov 2022 06:45:25 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 83931400D4 for ; Wed, 9 Nov 2022 06:45:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667972723; x=1699508723; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=fomL6aE1KBlml385XgsZVHA41M4z2c85kBCDgRS7EGA=; b=YHxQ35PLs7xPi5AcyVw+0Plur8Tjdr8W8jpeqX0R280ti13xOhTAX88Q /r42MD1SlP4Z6zGRu8sFpKqmgxLQtZFFPHioTxZ+KaeGqizCUHkUkVQNh 9SJm50MUqbv3G8fhSMee54KUAMY57mRTJbH8dpJ3GCKLHiv88TWLun07k 75NhyWNxx07fYJsbkw8p8ixPPpn3S7wvQtJYtmAMlFI/R0lAmbxltchCB KfYRZlzKyNFmtPWSe5K95JcPy5QPjgYUdPUGiANHUZQ/zkoxO8SZGKl7h OWFJpnRMplk4swem2rgQOBa3QZi+HsIkLXfcOndirUZPtpU05+/qMyC7m g==; X-IronPort-AV: E=McAfee;i="6500,9779,10525"; a="312693065" X-IronPort-AV: E=Sophos;i="5.96,149,1665471600"; d="scan'208,223";a="312693065" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2022 21:45:21 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10525"; a="725839786" X-IronPort-AV: E=Sophos;i="5.96,149,1665471600"; d="scan'208,223";a="725839786" 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:20 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 1/2] test_plans/vhost_virtio_user_interrupt_cbdma_test_plan: modify the dmas parameter Date: Wed, 9 Nov 2022 13:38:58 +0800 Message-Id: <20221109053858.1207024-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 testplan. Signed-off-by: Wei Ling --- ..._virtio_user_interrupt_cbdma_test_plan.rst | 68 +++++++++++-------- 1 file changed, 38 insertions(+), 30 deletions(-) diff --git a/test_plans/vhost_virtio_user_interrupt_cbdma_test_plan.rst b/test_plans/vhost_virtio_user_interrupt_cbdma_test_plan.rst index 3b74a152..50d875d3 100644 --- a/test_plans/vhost_virtio_user_interrupt_cbdma_test_plan.rst +++ b/test_plans/vhost_virtio_user_interrupt_cbdma_test_plan.rst @@ -14,7 +14,6 @@ status after stop sending packets from traffic generator. This test plan tests virtio-user Rx interrupt and LSC interrupt with vhost-user as the backend when cbdma enable. ..Note: - DPDK local patch that about vhost pmd is needed when testing Vhost asynchronous data path with testpmd. Prerequisites @@ -50,22 +49,25 @@ General set up Test case ========= -Test Case1: Split ring LSC event between vhost-user and virtio-user with cbdma enable -------------------------------------------------------------------------------------- -This case tests the LSC interrupt of split ring virtio-user with vhost-user as the back-end -when vhost uses the asynchronous operations with CBDMA channels. +Test Case 1: Split ring LSC event between vhost-user and virtio-user with cbdma enable +-------------------------------------------------------------------------------------- +This case tests the LSC interrupt of split ring virtio-user with vhost-user as the +back-end when vhost uses the asynchronous operations with CBDMA channels. Flow: Vhost <--> Virtio -1. Bind 1 CBDMA channel to vfio-pci driver, then start vhost-user side:: +1. Bind 1 CBDMA port to vfio-pci driver, then start vhost-user side:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3000 -n 4 -a 00:04.0 --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0,dmas=[txq0;rxq0]' \ - -- -i --lcore-dma=[lcore13@0000:00:04.0] + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3000 -n 4 -a 0000:00:04.0 --file-prefix=vhost \ + --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0,dmas=[txq0@0000:00:04.0;rxq0@0000:00:04.0]' \ + -- -i testpmd> set fwd mac testpmd> start 2. Start virtio-user side:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xc000 -n 4 --no-pci --file-prefix=virtio --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net -- -i --tx-offloads=0x00 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xc000 -n 4 --no-pci --file-prefix=virtio \ + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net \ + -- -i --tx-offloads=0x00 testpmd> set fwd mac testpmd> start @@ -79,15 +81,17 @@ Flow: Vhost <--> Virtio testpmd> show port info 0 #it should show "down" -Test Case2: Split ring virtio-user interrupt test with vhost-user as backend and cbdma enable ---------------------------------------------------------------------------------------------- -This case tests Rx interrupt of split ring virtio-user with vhost-user as the back-end when vhost uses the asynchronous operations with CBDMA channels. +Test Case 2: Split ring virtio-user interrupt test with vhost-user as backend and cbdma enable +---------------------------------------------------------------------------------------------- +This case tests Rx interrupt of split ring virtio-user with vhost-user as the back-end when +vhost uses the asynchronous operations with CBDMA channels. Flow: TG --> NIC --> Vhost --> Virtio -1. Bind 1 CBDMA channel and 1 NIC port to vfio-pci, launch testpmd with a virtual vhost device as backend:: +1. Bind 1 CBDMA port and 1 NIC port to vfio-pci, launch testpmd with a virtual vhost device as backend:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x7c -n 4 --vdev 'net_vhost0,iface=vhost-net,queues=1,dmas=[txq0;rxq0]' \ - -- -i --rxq=1 --txq=1 --lcore-dma=[lcore3@0000:00:04.0,lcore3@0000:00:04.1] + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x7c -n 4 -a 0000:af:00.0 -a 0000:00:04.0 \ + --vdev 'net_vhost0,iface=vhost-net,queues=1,dmas=[txq0@0000:00:04.0;rxq0@0000:00:04.0]' \ + -- -i --rxq=1 --txq=1 testpmd> start 2. Start l3fwd-power with a virtio-user device:: @@ -101,22 +105,25 @@ Flow: TG --> NIC --> Vhost --> Virtio 5. Restart sending packets with packet generator, check virtio-user related core change to wakeup status again. -Test Case3: Packed ring LSC event between vhost-user and virtio-user with cbdma enable --------------------------------------------------------------------------------------- -This case tests the LSC interrupt of packed ring virtio-user with vhost-user as the back-end -when vhost uses the asynchronous operations with CBDMA channels. +Test Case 3: Packed ring LSC event between vhost-user and virtio-user with cbdma enable +--------------------------------------------------------------------------------------- +This case tests the LSC interrupt of packed ring virtio-user with vhost-user as the +back-end when vhost uses the asynchronous operations with CBDMA channels. Flow: Vhost <--> Virtio -1. Bind one cbdma port to vfio-pci driver, then start vhost-user side:: +1. Bind 1 CBDMA port to vfio-pci driver, then start vhost-user side:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3000 -n 4 -a 00:04.0 --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0,dmas=[txq0;rxq0]' \ - -- -i --lcore-dma=[lcore13@0000:00:04.0,lcore13@0000:00:04.1] + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3000 -n 4 -a 0000:00:04.0 --file-prefix=vhost \ + --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0,dmas=[txq0@0000:00:04.0;rxq0@0000:00:04.0]' \ + -- -i testpmd> set fwd mac testpmd> start 2. Start virtio-user side:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xc000 -n 4 --no-pci --file-prefix=virtio --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,packed_vq=1 -- -i --tx-offloads=0x00 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xc000 -n 4 --no-pci --file-prefix=virtio \ + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,packed_vq=1 \ + -- -i --tx-offloads=0x00 testpmd> set fwd mac testpmd> start @@ -130,16 +137,18 @@ Flow: Vhost <--> Virtio testpmd> show port info 0 #it should show "down" -Test Case4: Packed ring virtio-user interrupt test with vhost-user as backend and cbdma enable ----------------------------------------------------------------------------------------------- -This case tests Rx interrupt of packed ring virtio-user with vhost-user as the back-end when vhost uses the asynchronous operations with CBDMA channels. +Test Case 4: Packed ring virtio-user interrupt test with vhost-user as backend and cbdma enable +----------------------------------------------------------------------------------------------- +This case tests Rx interrupt of packed ring virtio-user with vhost-user as the back-end when +vhost uses the asynchronous operations with CBDMA channels. flow: TG --> NIC --> Vhost --> Virtio -1. Bind one cbdma port and one NIC port to vfio-pci, launch testpmd with a virtual vhost device as backend:: +1. Bind 1 CBDMA port and 1 NIC port to vfio-pci, launch testpmd with a virtual vhost device as backend:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x7c -n 4 --vdev 'net_vhost0,iface=vhost-net,queues=1,dmas=[txq0;rxq0]' \ - -- -i --rxq=1 --txq=1 --lcore-dma=[lcore3@0000:00:04.0] + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x7c -n 4 -a 0000:af:00.0 -a 0000:00:04.0 \ + --vdev 'net_vhost0,iface=vhost-net,queues=1,dmas=[txq0@0000:00:04.0;rxq0@0000:00:04.0]' \ + -- -i --rxq=1 --txq=1 testpmd> start 2. Start l3fwd-power with a virtio-user device:: @@ -152,4 +161,3 @@ flow: TG --> NIC --> Vhost --> Virtio 4. Stop sending packets with packet generator, check virtio-user related core change to sleep status. 5. Restart sending packets with packet generator, check virtio-user related core change to wakeup status again. - 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"])