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 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 Content-Transfer-Encoding: 8bit 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 -- 2.25.1