From patchwork Tue Mar 28 07:40:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 125548 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 A21B442855; Tue, 28 Mar 2023 09:44:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9983B40EDF; Tue, 28 Mar 2023 09:44:02 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 066D240156 for ; Tue, 28 Mar 2023 09:44: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=1679989441; x=1711525441; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WYVIlvR5K2fqhjoM6IfL0AwLTOQ9ehhXK1MPepqCD/Q=; b=DCkR9QNwPWtYzqNQ1Bl/dHX8epSwQ38DlE1fR82lCzMyiNle7cPM915Q +1rXL44P6LU2/EvRJJ3S/AFkaztiv37PpXp2QbGqZxqloGPJe1f/XqEei O+KKKLc2IygNLkRZ9wnykn/DHDFLs1+kYZB7vEIZ0p4MJ9sJtDI09ISvY AeXbdVdPwWhUJhLNnVLc27R3ZXBzJ7Uf/YhL4YN2FH0Dl3aVk+zNKNmUk SRtWVhTQb0ngHDJ2kGFuHCKfvgeUwww3ESJqaE0QnJPp1NG6YJKYaD2ia RgOxl1TZJiIe7cJ4jw6s1HMMjdEQWuBKHY7Wy882kDM1STuIjxlJCtYeM A==; X-IronPort-AV: E=McAfee;i="6600,9927,10662"; a="342905939" X-IronPort-AV: E=Sophos;i="5.98,296,1673942400"; d="scan'208";a="342905939" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 00:44:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10662"; a="753030421" X-IronPort-AV: E=Sophos;i="5.98,296,1673942400"; d="scan'208";a="753030421" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 00:43:59 -0700 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 1/2] test_plans/virtio_event_idx_interrupt_cbdma: modify re-run times from 100 to 10 Date: Tue, 28 Mar 2023 15:40:57 +0800 Message-Id: <20230328074058.3796087-2-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230328074058.3796087-1-weix.ling@intel.com> References: <20230328074058.3796087-1-weix.ling@intel.com> 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 Modify re-run times from 100 to 10 for reduce run time. Signed-off-by: Wei Ling --- ...io_event_idx_interrupt_cbdma_test_plan.rst | 122 +++++++++--------- 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/test_plans/virtio_event_idx_interrupt_cbdma_test_plan.rst b/test_plans/virtio_event_idx_interrupt_cbdma_test_plan.rst index 55008f07..8cf34c0b 100644 --- a/test_plans/virtio_event_idx_interrupt_cbdma_test_plan.rst +++ b/test_plans/virtio_event_idx_interrupt_cbdma_test_plan.rst @@ -32,24 +32,24 @@ General set up -------------- 1. Compile DPDK:: - # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all --default-library=static - # ninja -C -j 110 - For example: - CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all --default-library=static x86_64-native-linuxapp-gcc - ninja -C x86_64-native-linuxapp-gcc -j 110 + # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all --default-library=static + # ninja -C -j 110 + For example: + CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all --default-library=static x86_64-native-linuxapp-gcc + ninja -C x86_64-native-linuxapp-gcc -j 110 2. Get the PCI device ID and DMA device ID of DUT, for example, 0000:18:00.0 is PCI device ID, 0000:00:04.0, 0000:00:04.1 is DMA device ID:: - # ./usertools/dpdk-devbind.py -s + # ./usertools/dpdk-devbind.py -s - Network devices using kernel driver - =================================== - 0000:18:00.0 'Device 159b' if=ens785f0 drv=ice unused=vfio-pci + Network devices using kernel driver + =================================== + 0000:18:00.0 'Device 159b' if=ens785f0 drv=ice unused=vfio-pci - DMA devices using kernel driver - =============================== - 0000:00:04.0 'Sky Lake-E CBDMA Registers 2021' drv=ioatdma unused=vfio-pci - 0000:00:04.1 'Sky Lake-E CBDMA Registers 2021' drv=ioatdma unused=vfio-pci + DMA devices using kernel driver + =============================== + 0000:00:04.0 'Sky Lake-E CBDMA Registers 2021' drv=ioatdma unused=vfio-pci + 0000:00:04.1 'Sky Lake-E CBDMA Registers 2021' drv=ioatdma unused=vfio-pci Test case ========= @@ -62,11 +62,11 @@ operations with CBDMA channels. 1. Bind one nic port and one cbdma channel to vfio-pci, then launch the vhost sample by below commands:: - rm -rf vhost-net* - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xF0000000 -n 4 --file-prefix=vhost \ - --vdev 'net_vhost,iface=vhost-net,queues=1,dmas=[txq0@0000:00:04.0;rxq0@0000:00:04.0]' \ - -- -i --nb-cores=1 --txd=1024 --rxd=1024 - testpmd> start + rm -rf vhost-net* + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xF0000000 -n 4 --file-prefix=vhost \ + --vdev 'net_vhost,iface=vhost-net,queues=1,dmas=[txq0@0000:00:04.0;rxq0@0000:00:04.0]' \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 + testpmd> start 2. Launch VM:: @@ -82,21 +82,21 @@ operations with CBDMA channels. 3. On VM1, set virtio device IP, send 10M packets from packet generator to nic then check virtio device can receive packets:: - ifconfig [ens3] 1.1.1.2 # [ens3] is the name of virtio-net - tcpdump -i [ens3] + ifconfig [ens3] 1.1.1.2 # [ens3] is the name of virtio-net + tcpdump -i [ens3] 4. Reload virtio-net driver by below cmds:: - ifconfig [ens3] down - ./usertools/dpdk-devbind.py -u [00:03.0] # [00:03.0] is the pci addr of virtio-net - ./usertools/dpdk-devbind.py -b virtio-pci [00:03.0] + ifconfig [ens3] down + ./usertools/dpdk-devbind.py -u [00:03.0] # [00:03.0] is the pci addr of virtio-net + ./usertools/dpdk-devbind.py -b virtio-pci [00:03.0] 5. Check virtio device can receive packets again:: - ifconfig [ens3] 1.1.1.2 - tcpdump -i [ens3] + ifconfig [ens3] 1.1.1.2 + tcpdump -i [ens3] -6. Rerun step4 and step5 100 times to check event idx workable after driver reload. +6. Rerun step4 and step5 10 times to check event idx workable after driver reload. Test Case 2: Split ring 16 queues virtio-net event idx interrupt mode test with cbdma enable -------------------------------------------------------------------------------------------- @@ -105,11 +105,11 @@ vhost uses the asynchronous operations with CBDMA channels. 1. Bind one nic port and 4 cbdma channels to vfio-pci, then launch the vhost sample by below commands:: - rm -rf vhost-net* - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-17 -n 4 --file-prefix=vhost \ - --vdev 'net_vhost,iface=vhost-net,queues=16,client=1,dmas=[txq0@0000:00:04.0;txq1@0000:00:04.0;txq2@0000:00:04.0;txq3@0000:00:04.0;txq4@0000:00:04.0;txq5@0000:00:04.0;txq6@0000:00:04.0;txq7@0000:00:04.0;txq8@0000:00:04.1;txq9@0000:00:04.1;txq10@0000:00:04.1;txq11@0000:00:04.1;txq12@0000:00:04.1;txq13@0000:00:04.1;txq14@0000:00:04.1;txq15@0000:00:04.1;rxq0@0000:00:04.2;rxq1@0000:00:04.2;rxq2@0000:00:04.2;rxq3@0000:00:04.2;rxq4@0000:00:04.2;rxq5@0000:00:04.2;rxq6@0000:00:04.2;rxq7@0000:00:04.2;rxq8@0000:00:04.3;rxq9@0000:00:04.3;rxq10@0000:00:04.3;rxq11@0000:00:04.3;rxq12@0000:00:04.3;rxq13@0000:00:04.3;rxq14@0000:00:04.3;rxq15@0000:00:04.3]' \ - -- -i --nb-cores=16 --txd=1024 --rxd=1024 --rxq=16 --txq=16 - testpmd> start + rm -rf vhost-net* + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-17 -n 4 --file-prefix=vhost \ + --vdev 'net_vhost,iface=vhost-net,queues=16,client=1,dmas=[txq0@0000:00:04.0;txq1@0000:00:04.0;txq2@0000:00:04.0;txq3@0000:00:04.0;txq4@0000:00:04.0;txq5@0000:00:04.0;txq6@0000:00:04.0;txq7@0000:00:04.0;txq8@0000:00:04.1;txq9@0000:00:04.1;txq10@0000:00:04.1;txq11@0000:00:04.1;txq12@0000:00:04.1;txq13@0000:00:04.1;txq14@0000:00:04.1;txq15@0000:00:04.1;rxq0@0000:00:04.2;rxq1@0000:00:04.2;rxq2@0000:00:04.2;rxq3@0000:00:04.2;rxq4@0000:00:04.2;rxq5@0000:00:04.2;rxq6@0000:00:04.2;rxq7@0000:00:04.2;rxq8@0000:00:04.3;rxq9@0000:00:04.3;rxq10@0000:00:04.3;rxq11@0000:00:04.3;rxq12@0000:00:04.3;rxq13@0000:00:04.3;rxq14@0000:00:04.3;rxq15@0000:00:04.3]' \ + -- -i --nb-cores=16 --txd=1024 --rxd=1024 --rxq=16 --txq=16 + testpmd> start 2. Launch VM:: @@ -125,18 +125,18 @@ vhost uses the asynchronous operations with CBDMA channels. 3. On VM1, give virtio device IP and enable vitio-net with 16 quques:: - ifconfig [ens3] 1.1.1.2 # [ens3] is the name of virtio-net - ethtool -L [ens3] combined 16 + ifconfig [ens3] 1.1.1.2 # [ens3] is the name of virtio-net + ethtool -L [ens3] combined 16 4. Send 10M different IP packets from packet generator to nic, check virtio-net interrupt times by below cmd in VM:: - cat /proc/interrupts + cat /proc/interrupts 5. Stop testpmd, check each queue has new packets coming, then start testpmd and check each queue has new packets coming:: - testpmd> stop - testpmd> start - testpmd> stop + testpmd> stop + testpmd> start + testpmd> stop Test Case 3: Packed ring virtio-pci driver reload test with CBDMA enable ------------------------------------------------------------------------ @@ -146,11 +146,11 @@ with CBDMA channels. 1. Bind one nic port and one cbdma channel to vfio-pci, then launch the vhost sample by below commands:: - rm -rf vhost-net* - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xF0000000 -n 4 --file-prefix=vhost \ - --vdev 'net_vhost,iface=vhost-net,queues=1,dmas=[txq0@0000:00:04.0;rxq0@0000:00:04.0]' \ - -- -i --nb-cores=1 --txd=1024 --rxd=1024 - testpmd> start + rm -rf vhost-net* + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xF0000000 -n 4 --file-prefix=vhost \ + --vdev 'net_vhost,iface=vhost-net,queues=1,dmas=[txq0@0000:00:04.0;rxq0@0000:00:04.0]' \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 + testpmd> start 2. Launch VM:: @@ -166,21 +166,21 @@ with CBDMA channels. 3. On VM1, set virtio device IP, send 10M packets from packet generator to nic then check virtio device can receive packets:: - ifconfig [ens3] 1.1.1.2 # [ens3] is the name of virtio-net - tcpdump -i [ens3] + ifconfig [ens3] 1.1.1.2 # [ens3] is the name of virtio-net + tcpdump -i [ens3] 4. Reload virtio-net driver by below cmds:: - ifconfig [ens3] down - ./usertools/dpdk-devbind.py -u [00:03.0] # [00:03.0] is the pci addr of virtio-net - ./usertools/dpdk-devbind.py -b virtio-pci [00:03.0] + ifconfig [ens3] down + ./usertools/dpdk-devbind.py -u [00:03.0] # [00:03.0] is the pci addr of virtio-net + ./usertools/dpdk-devbind.py -b virtio-pci [00:03.0] 5. Check virtio device can receive packets again:: - ifconfig [ens3] 1.1.1.2 - tcpdump -i [ens3] + ifconfig [ens3] 1.1.1.2 + tcpdump -i [ens3] -6. Rerun step4 and step5 100 times to check event idx workable after driver reload. +6. Rerun step4 and step5 10 times to check event idx workable after driver reload. Test Case 4: Packed ring 16 queues virtio-net event idx interrupt mode test with cbdma enable --------------------------------------------------------------------------------------------- @@ -189,11 +189,11 @@ uses the asynchronous operations with CBDMA channels. 1. Bind one nic port and 4 cbdma channels to vfio-pci, then launch the vhost sample by below commands:: - rm -rf vhost-net* - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-17 -n 4 --file-prefix=vhost \ - --vdev 'net_vhost,iface=vhost-net,queues=16,client=1,dmas=[txq0@0000:00:04.0;txq1@0000:00:04.0;txq2@0000:00:04.0;txq3@0000:00:04.0;txq4@0000:00:04.0;txq5@0000:00:04.0;txq6@0000:00:04.0;txq7@0000:00:04.0;txq8@0000:00:04.1;txq9@0000:00:04.1;txq10@0000:00:04.1;txq11@0000:00:04.1;txq12@0000:00:04.1;txq13@0000:00:04.1;txq14@0000:00:04.1;txq15@0000:00:04.1;rxq0@0000:00:04.2;rxq1@0000:00:04.2;rxq2@0000:00:04.2;rxq3@0000:00:04.2;rxq4@0000:00:04.2;rxq5@0000:00:04.2;rxq6@0000:00:04.2;rxq7@0000:00:04.2;rxq8@0000:00:04.3;rxq9@0000:00:04.3;rxq10@0000:00:04.3;rxq11@0000:00:04.3;rxq12@0000:00:04.3;rxq13@0000:00:04.3;rxq14@0000:00:04.3;rxq15@0000:00:04.3]' \ - -- -i --nb-cores=16 --txd=1024 --rxd=1024 --rxq=16 --txq=16 - testpmd> start + rm -rf vhost-net* + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-17 -n 4 --file-prefix=vhost \ + --vdev 'net_vhost,iface=vhost-net,queues=16,client=1,dmas=[txq0@0000:00:04.0;txq1@0000:00:04.0;txq2@0000:00:04.0;txq3@0000:00:04.0;txq4@0000:00:04.0;txq5@0000:00:04.0;txq6@0000:00:04.0;txq7@0000:00:04.0;txq8@0000:00:04.1;txq9@0000:00:04.1;txq10@0000:00:04.1;txq11@0000:00:04.1;txq12@0000:00:04.1;txq13@0000:00:04.1;txq14@0000:00:04.1;txq15@0000:00:04.1;rxq0@0000:00:04.2;rxq1@0000:00:04.2;rxq2@0000:00:04.2;rxq3@0000:00:04.2;rxq4@0000:00:04.2;rxq5@0000:00:04.2;rxq6@0000:00:04.2;rxq7@0000:00:04.2;rxq8@0000:00:04.3;rxq9@0000:00:04.3;rxq10@0000:00:04.3;rxq11@0000:00:04.3;rxq12@0000:00:04.3;rxq13@0000:00:04.3;rxq14@0000:00:04.3;rxq15@0000:00:04.3]' \ + -- -i --nb-cores=16 --txd=1024 --rxd=1024 --rxq=16 --txq=16 + testpmd> start 2. Launch VM:: @@ -209,15 +209,15 @@ uses the asynchronous operations with CBDMA channels. 3. On VM1, configure virtio device IP and enable vitio-net with 16 quques:: - ifconfig [ens3] 1.1.1.2 # [ens3] is the name of virtio-net - ethtool -L [ens3] combined 16 + ifconfig [ens3] 1.1.1.2 # [ens3] is the name of virtio-net + ethtool -L [ens3] combined 16 4. Send 10M different IP packets from packet generator to nic, check virtio-net interrupt times by below cmd in VM:: - cat /proc/interrupts + cat /proc/interrupts 5. Stop testpmd, check each queue has new packets coming, then start testpmd and check each queue has new packets coming:: - testpmd> stop - testpmd> start - testpmd> stop + testpmd> stop + testpmd> start + testpmd> stop From patchwork Tue Mar 28 07:40:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 125549 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 C930B42854; Tue, 28 Mar 2023 09:44:04 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C449B40A87; Tue, 28 Mar 2023 09:44:04 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id B895542686 for ; Tue, 28 Mar 2023 09:44:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679989442; x=1711525442; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Hik9LuHED9uBc+Sn0BO99xoZ1dOQM2nz+YfHb3W7W+o=; b=hyJUs0Umj4p0YaT4o5e07YBtthn5O8zd+4347gwhAX8K5Wc6YUl1d1ml g76Hmte3zjEkZGWE4/mhZSTksFXb/epHl4GxU/dy9T/ZiJvUTmqjSyJPP tQZOyTPqLPTxt0/QHh1eOMB4ODtCs5oW6CbAFzixsotjVhb7qNbmF+oAC V2H3cgK2QkGEKDtD7SlQQ0QFWnRMu1bWVUKxdmJYhhcpdx8HHA7dS2HH6 qzjZsQ0ZhNDp2/wvD8YJMnSKRNcU5v0gaFlPyWLfLuJCQ08GoU38RCns0 kswUcccT2EW0UH4EQjRdXymKwgLh7EOeBgT9uXaL4kWPuNOG6HRARp7Yh w==; X-IronPort-AV: E=McAfee;i="6600,9927,10662"; a="342905942" X-IronPort-AV: E=Sophos;i="5.98,296,1673942400"; d="scan'208";a="342905942" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 00:44:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10662"; a="753030451" X-IronPort-AV: E=Sophos;i="5.98,296,1673942400"; d="scan'208";a="753030451" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 00:44:01 -0700 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 2/2] tests/virtio_event_idx_interrupt_cbdma: modify re-run times from 100 to 10 Date: Tue, 28 Mar 2023 15:40:58 +0800 Message-Id: <20230328074058.3796087-3-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230328074058.3796087-1-weix.ling@intel.com> References: <20230328074058.3796087-1-weix.ling@intel.com> 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 Modify re-run times from 100 to 10 for reduce run time. Signed-off-by: Wei Ling Acked-by: Xingguang He --- tests/TestSuite_virtio_event_idx_interrupt_cbdma.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_virtio_event_idx_interrupt_cbdma.py b/tests/TestSuite_virtio_event_idx_interrupt_cbdma.py index a3431827..697cfd97 100644 --- a/tests/TestSuite_virtio_event_idx_interrupt_cbdma.py +++ b/tests/TestSuite_virtio_event_idx_interrupt_cbdma.py @@ -2,11 +2,6 @@ # Copyright(c) 2022 Intel Corporation # -""" -DPDK Test suite. -Virtio idx interrupt need test with l3fwd-power sample -""" - import _thread import re import time @@ -279,7 +274,7 @@ class TestVirtioIdxInterruptCbdma(TestCase): self.queues = 1 self.start_vms(packed=False) self.config_virito_net_in_vm() - res = self.check_packets_after_reload_virtio_device(reload_times=100) + res = self.check_packets_after_reload_virtio_device(reload_times=10) self.verify(res is True, "Should increase the wait times of ixia") self.stop_all_apps() @@ -406,7 +401,7 @@ class TestVirtioIdxInterruptCbdma(TestCase): self.queues = 1 self.start_vms(packed=True) self.config_virito_net_in_vm() - res = self.check_packets_after_reload_virtio_device(reload_times=100) + res = self.check_packets_after_reload_virtio_device(reload_times=10) self.verify(res is True, "Should increase the wait times of ixia") self.stop_all_apps()