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 69B2EA0032; Wed, 11 May 2022 10:50:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 475F7410F2; Wed, 11 May 2022 10:50:49 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id E599A40042 for ; Wed, 11 May 2022 10:50:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652259048; x=1683795048; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=O5zDzbnK7TdBdFTQCTZNDk2lFesxe5pl/zTn3J3q6Hs=; b=i2HdjHg19AKRv/bkr4uvchfMGhYolLaT20cPmbuu7p/Dod7K8HcD+kwE 7imKR9JRUQPPuEriJLPOsfzFN+AnMgr2rodiLSbmce1YZKR7dJHxo3VSY ysyWG/rI6TA2iHTH8Spugt3n+ta+6L0lHTzfi44AY2Nnjm5DajCfru2LJ iv3y84kY0l8cEoBRZiUNrtNHKBe638g0ft7wNc0EZdVkiQnPqRDZntyzx A3bT2LXRfgHYAGLUDe1lSM9t77aSlrifch4DQwg4n7Ss3P53eq6ug5cN6 Zbsh35QgcfG6JtmcHRD7y1FhPpYaVoG6yiH30zfVJ69CCcX4A8hFi22sV Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10343"; a="267224127" X-IronPort-AV: E=Sophos;i="5.91,216,1647327600"; d="scan'208";a="267224127" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2022 01:50:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,216,1647327600"; d="scan'208";a="658066828" Received: from silpixa00399839.ir.intel.com (HELO localhost.localdomain) ([10.237.222.159]) by FMSMGA003.fm.intel.com with ESMTP; 11 May 2022 01:50:44 -0700 From: Ciara Loftus To: dts@dpdk.org Cc: Ciara Loftus Subject: [PATCH] test_plans/af_xdp_test_plan: Remove af_xdp test plan Date: Wed, 11 May 2022 08:50:12 +0000 Message-Id: <20220511085012.15632-1-ciara.loftus@intel.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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 This test plan does not have a corresponding implementation in the tests directory so it should be removed. Signed-off-by: Ciara Loftus --- test_plans/af_xdp_test_plan.rst | 236 -------------------------------- test_plans/index.rst | 1 - 2 files changed, 237 deletions(-) delete mode 100644 test_plans/af_xdp_test_plan.rst diff --git a/test_plans/af_xdp_test_plan.rst b/test_plans/af_xdp_test_plan.rst deleted file mode 100644 index a05de37b..00000000 --- a/test_plans/af_xdp_test_plan.rst +++ /dev/null @@ -1,236 +0,0 @@ -.. Copyright (c) <2019>, Intel Corporation - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - - - Neither the name of Intel Corporation nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, - STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED - OF THE POSSIBILITY OF SUCH DAMAGE. - -========================= -DPDK PMD for AF_XDP Tests -========================= - -Description -=========== - -AF_XDP is a proposed faster version of AF_PACKET interface in Linux. -This test plan is to analysis the performance of DPDK PMD for AF_XDP. - -Prerequisites -============= - -1. Hardware:: - - I40e 25G*2 - enp216s0f0 <---> IXIA_port_0 - enp216s0f1 <---> IXIA_port_1 - -2. The NIC is located on the socket 1, so we define the cores of socket 1. - -3. Take the kernel >= v5.2-rc2, build kernel and replace your host - kernel with it. - Update compiler to the proper version. - Make sure you turn on XDP sockets when compiling:: - - Networking support --> - Networking options --> - [ * ] XDP sockets - - Then compile the kernel:: - - make -j16 - make modules_install install - -4. Build libbpf in tools/lib/bpf:: - - cd tools/lib/bpf - make install_lib prefix=/usr - make install_headers prefix=/usr - -5. Build dpdk:: - - cd dpdk - CC=gcc meson -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc - ninja -C x86_64-native-linuxapp-gcc - -6. Set DUT port only has one queue:: - - ethtool -L enp216s0f0 combined 1 - ethtool -L enp216s0f1 combined 1 - -Test case 1: single port -======================== - -1. Start the testpmd:: - - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 29,30 -n 6 --no-pci --vdev net_af_xdp0,iface=enp216s0f0 \ - -- -i --nb-cores=1 --rxq=1 --txq=1 --port-topology=loop - -2. Assign the kernel core:: - - ./set_irq_affinity 34 enp216s0f0 - -3. Send packets by packet generator with different packet size, - from 64 bytes to 1518 bytes, check the throughput. - -Test case 2: two ports -====================== - -1. Start the testpmd:: - - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 29,30-31 --no-pci -n 6 \ - --vdev net_af_xdp0,iface=enp216s0f0 --vdev net_af_xdp1,iface=enp216s0f1 \ - -- -i --nb-cores=2 --rxq=1 --txq=1 - -2. Assign the kernel core:: - - ./set_irq_affinity 33 enp216s0f0 - ./set_irq_affinity 34 enp216s0f1 - -3. Send packets by packet generator port0 with different packet size, - from 64 bytes to 1518 bytes, check the throughput at port1. - -4. Send packets by packet generator port0 and port1 with different packet size, - from 64 bytes to 1518 bytes, check the throughput at port0 and port1. - -Test case 3: multiqueue -======================= - -1. One queue. - - 1) Start the testpmd with one queue:: - - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 29,30 -n 6 --no-pci \ - --vdev net_af_xdp0,iface=enp216s0f0,start_queue=0,queue_count=1 \ - -- -i --nb-cores=1 --rxq=1 --txq=1 --port-topology=loop - - 2) Assign the kernel core:: - - ./set_irq_affinity 34 enp216s0f0 - - 3) Send packets with different dst IP address by packet generator - with different packet size from 64 bytes to 1518 bytes, check the throughput. - -2. Four queues. - - 1) Set hardware queue:: - - ethtool -L enp216s0f0 combined 4 - - 2) Start the testpmd with four queues:: - - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 29,30-33 -n 6 --no-pci \ - --vdev net_af_xdp0,iface=enp216s0f0,start_queue=0,queue_count=4 \ - -- -i --nb-cores=4 --rxq=4 --txq=4 --port-topology=loop - - 3) Assign the kernel core:: - - ./set_irq_affinity 34-37 enp216s0f0 - - 4) Send packets with different dst IP address by packet generator - with different packet size from 64 bytes to 1518 bytes, check the throughput. - The packets were distributed to the four queues. - -Test case 4: need_wakeup -======================== - -1. Set hardware queue:: - - ethtool -L enp216s0f0 combined 1 - -2. Start the testpmd with one queue:: - - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 29,30 -n 6 --no-pci --vdev net_af_xdp0,iface=enp216s0f0 \ - -- -i --nb-cores=1 --rxq=1 --txq=1 --port-topology=loop - -3. Assign the same core:: - - ./set_irq_affinity 30 enp216s0f0 - -4. Send packets by packet generator with different packet size from 64 bytes - to 1518 bytes, check the throughput. - Expect the performance is better than no need_wakeup. - -Test case 5: xdpsock sample performance -======================================= - -1. One queue. - - 1) Set hardware queue:: - - ethtool -L enp216s0f0 combined 1 - - 2) Start the xdp socket with one queue:: - - #taskset -c 30 ./xdpsock -l -i enp216s0f0 - - 3) Assign the kernel core:: - - ./set_irq_affinity 34 enp216s0f0 - - 4) Send packets with different dst IP address by packet generator - with different packet size from 64 bytes to 1518 bytes, check the throughput. - -2. Four queues. - - 1) Set hardware queue:: - - ethtool -L enp216s0f0 combined 4 - - 2) Start the xdp socket with four queues:: - - #taskset -c 30 ./xdpsock -l -i enp216s0f0 -q 0 - #taskset -c 31 ./xdpsock -l -i enp216s0f0 -q 1 - #taskset -c 32 ./xdpsock -l -i enp216s0f0 -q 2 - #taskset -c 33 ./xdpsock -l -i enp216s0f0 -q 3 - - 3) Assign the kernel core:: - - ./set_irq_affinity 34-37 enp216s0f0 - - 4) Send packets with different dst IP address by packet generator - with different packet size from 64 bytes to 1518 bytes, check the throughput. - The packets were distributed to the four queues. - Expect the performance of four queues is better than one queue. - -3. Need_wakeup. - - 1) Set hardware queue:: - - ethtool -L enp216s0f0 combined 1 - - 2) Start the xdp socket with four queues:: - - #taskset -c 30 ./xdpsock -l -i enp216s0f0 - - 3) Assign the kernel core:: - - ./set_irq_affinity 30 enp216s0f0 - - 4) Send packets by packet generator with different packet size from 64 bytes - to 1518 bytes, check the throughput. - Expect the performance is better than no need_wakeup. diff --git a/test_plans/index.rst b/test_plans/index.rst index d0f73d23..0f179d05 100644 --- a/test_plans/index.rst +++ b/test_plans/index.rst @@ -178,7 +178,6 @@ The following are the test plans for the DPDK DTS automated test system. vlan_ethertype_config_test_plan vlan_test_plan vxlan_test_plan - af_xdp_test_plan l2fwd_jobstats_test_plan loopback_multi_queues_test_plan telemetry_test_plan -- 2.17.1