From patchwork Mon Jan 24 15:36:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Loftus, Ciara" X-Patchwork-Id: 106357 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 311A0A04A8; Mon, 24 Jan 2022 16:37:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0397241152; Mon, 24 Jan 2022 16:37:01 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 36C2240040 for ; Mon, 24 Jan 2022 16:37:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643038620; x=1674574620; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=L2eGbyIoDlhJUyMB7gR0fNosa8dQ7hI2Ftb4YVt9gWM=; b=kxbZdR1PpSpXSF1+CYlyGEImULP66cchSLss/+VOWDVqr6NNqu1QBiVs nbJQmuBXvvUZJOrCXB5fCCLWX8nP2vLB0Af5Nkn/iY7Y1+fQOlDYL+kmS L1IGSjfleizDIKVnfThlJfx94NPZmPik54IfCt0XWtsKCn4X8hmpeb7hK IVtkot2+66VtQA09ibpMYrm5/nG/siIyvPlHRG8IHwWNAbhT+9n0ufX1P OU1qap3f4la1O+SXC3IJHkB3u43jGeSDtQ5tv9B1xfOdm/GGRgQ4jJ4V+ VRcx1YNueXzRlQIvAsEbYXAZPxXEpUEF20tSUu9jzOl+36v4cg36pPZoX Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10236"; a="233431491" X-IronPort-AV: E=Sophos;i="5.88,311,1635231600"; d="scan'208";a="233431491" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2022 07:36:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,311,1635231600"; d="scan'208";a="766433552" Received: from silpixa00401086.ir.intel.com (HELO localhost.localdomain) ([10.55.129.110]) by fmsmga006.fm.intel.com with ESMTP; 24 Jan 2022 07:36:58 -0800 From: Ciara Loftus To: dts@dpdk.org Cc: Ciara Loftus Subject: [PATCH] test_plans/af_xdp*: update for use with meson Date: Mon, 24 Jan 2022 15:36:49 +0000 Message-Id: <20220124153649.14716-1-ciara.loftus@intel.com> X-Mailer: git-send-email 2.17.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 Update the AF_XDP test plans with instructions on how to build with meson. Also update the paths to and names of the apps and examples referenced in the plans, to point to those generated with meson. Signed-off-by: Ciara Loftus --- test_plans/af_xdp_2_test_plan.rst | 23 ++++++++++++----------- test_plans/af_xdp_test_plan.rst | 27 +++++++++++++-------------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/test_plans/af_xdp_2_test_plan.rst b/test_plans/af_xdp_2_test_plan.rst index 01fae742..d9b21bcc 100644 --- a/test_plans/af_xdp_2_test_plan.rst +++ b/test_plans/af_xdp_2_test_plan.rst @@ -70,10 +70,11 @@ Prerequisites grub-mkconfig -o /boot/grub/grub.cfg reboot -5. Explicitly enable AF_XDP pmd by adding below line to config/common_linux, then build DPDK:: +5. Build DPDK:: - CONFIG_RTE_LIBRTE_PMD_AF_XDP=y - make -j 110 install T=x86_64-native-linuxapp-gcc + 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. Involve lib:: @@ -85,7 +86,7 @@ Test case 1: single port test with PMD core and IRQ core are pinned to separate 1. Start the testpmd:: ethtool -L enp26s0f1 combined 1 - ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-2 -n 4 --vdev net_af_xdp0,iface=enp26s0f1,start_queue=0,queue_count=1 --log-level=pmd.net.af_xdp:8 -- -i --nb-cores=1 --rxq=1 --txq=1 --port-topology=loop + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-2 -n 4 --vdev net_af_xdp0,iface=enp26s0f1,start_queue=0,queue_count=1 --log-level=pmd.net.af_xdp:8 -- -i --nb-cores=1 --rxq=1 --txq=1 --port-topology=loop 2. Assign the kernel core:: @@ -101,7 +102,7 @@ Test case 2: two ports test with PMD cores and IRQ cores are pinned to separate ethtool -L enp26s0f0 combined 1 ethtool -L enp26s0f1 combined 1 - ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-3 --no-pci -n 4 \ + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-3 --no-pci -n 4 \ --vdev net_af_xdp0,iface=enp26s0f0 --vdev net_af_xdp1,iface=enp26s0f1 \ --log-level=pmd.net.af_xdp:8 -- -i --auto-start --nb-cores=2 --rxq=1 --txq=1 --port-topology=loop @@ -121,7 +122,7 @@ Test case 3: multi-queue test with PMD cores and IRQ cores are pinned to separat 2. Start the testpmd with two queues:: - ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-3 -n 6 --no-pci \ + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-3 -n 6 --no-pci \ --vdev net_af_xdp0,iface=enp26s0f1,start_queue=0,queue_count=2 \ -- -i --auto-start --nb-cores=2 --rxq=2 --txq=2 --port-topology=loop @@ -138,7 +139,7 @@ Test case 4: two ports test with PMD cores and IRQ cores pinned to same cores ethtool -L enp26s0f0 combined 1 ethtool -L enp26s0f1 combined 1 - ./x86_64-native-linuxapp-gcc/app/testpmd -l 29,30-31 --no-pci -n 4 \ + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 29,30-31 --no-pci -n 4 \ --vdev net_af_xdp0,iface=enp26s0f0 --vdev net_af_xdp1,iface=enp26s0f1 \ -- -i --auto-start --nb-cores=2 --rxq=1 --txq=1 --port-topology=loop @@ -158,7 +159,7 @@ Test case 5: multi-queue test with PMD cores and IRQ cores pinned to same cores 2. Start the testpmd with two queues:: - ./testpmd -l 29,30-31 -n 6 --no-pci \ + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 29,30-31 -n 6 --no-pci \ --vdev net_af_xdp0,iface=enp26s0f1,start_queue=0,queue_count=2 \ -- -i --auto-start --nb-cores=2 --rxq=2 --txq=2 --port-topology=loop @@ -177,7 +178,7 @@ Test case 6: one port with two vdev and single queue test 2. Start the testpmd:: - ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-3 --no-pci -n 4 \ + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-3 --no-pci -n 4 \ --vdev net_af_xdp0,iface=enp26s0f1,start_queue=0,queue_count=1 \ --vdev net_af_xdp1,iface=enp26s0f1,start_queue=1,queue_count=1 \ -- -i --nb-cores=2 --rxq=1 --txq=1 --port-topology=loop @@ -204,7 +205,7 @@ Test case 7: one port with two vdev and multi-queues test 2. Start the testpmd:: - ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-9 --no-pci -n 6 \ + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-9 --no-pci -n 6 \ --vdev net_af_xdp0,iface=enp26s0f1,start_queue=0,queue_count=4 \ --vdev net_af_xdp1,iface=enp26s0f1,start_queue=4,queue_count=4 --log-level=pmd.net.af_xdp:8 \ -- -i --rss-ip --nb-cores=8 --rxq=4 --txq=4 --port-topology=loop @@ -214,4 +215,4 @@ Test case 7: one port with two vdev and multi-queues test ./set_irq_affinity 10-17 enp26s0f1 #PMD and IRQs pinned to seperate cores ./set_irq_affinity 2-9 enp26s0f1 #PMD and IRQs pinned to same cores -4. Send random ip packets , check the packets were distributed to queue0 ~ queue7. \ No newline at end of file +4. Send random ip packets , check the packets were distributed to queue0 ~ queue7. diff --git a/test_plans/af_xdp_test_plan.rst b/test_plans/af_xdp_test_plan.rst index 58e60779..b7feea11 100644 --- a/test_plans/af_xdp_test_plan.rst +++ b/test_plans/af_xdp_test_plan.rst @@ -71,12 +71,11 @@ Prerequisites make install_lib prefix=/usr make install_headers prefix=/usr -5. Explicitly enable AF_XDP pmd by adding below line to - config/common_linux:: +5. Build dpdk:: - CONFIG_RTE_LIBRTE_PMD_AF_XDP=y - - Then 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:: @@ -88,7 +87,7 @@ Test case 1: single port 1. Start the testpmd:: - ./testpmd -l 29,30 -n 6 --no-pci --vdev net_af_xdp0,iface=enp216s0f0 \ + ./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:: @@ -103,7 +102,7 @@ Test case 2: two ports 1. Start the testpmd:: - ./x86_64-native-linuxapp-gcc/app/testpmd -l 29,30-31 --no-pci -n 6 \ + ./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 @@ -123,7 +122,7 @@ Test case 3: zero copy 1. Start the testpmd:: - ./testpmd -l 29,30 -n 6 --no-pci \ + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 29,30 -n 6 --no-pci \ --vdev net_af_xdp0,iface=enp216s0f0,pmd_zero_copy=1 \ -- -i --nb-cores=1 --rxq=1 --txq=1 --port-topology=loop @@ -141,7 +140,7 @@ Test case 4: multiqueue 1) Start the testpmd with one queue:: - ./testpmd -l 29,30 -n 6 --no-pci \ + ./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 @@ -160,7 +159,7 @@ Test case 4: multiqueue 2) Start the testpmd with four queues:: - ./testpmd -l 29,30-33 -n 6 --no-pci \ + ./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 @@ -183,7 +182,7 @@ Test case 5: multiqueue and zero copy 2) Start the testpmd with one queue:: - ./testpmd -l 29,30 -n 6 --no-pci \ + ./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,pmd_zero_copy=1 \ -- -i --nb-cores=1 --rxq=1 --txq=1 --port-topology=loop @@ -203,7 +202,7 @@ Test case 5: multiqueue and zero copy 2) Start the testpmd with four queues:: - ./testpmd -l 29,30-33 -n 6 --no-pci \ + ./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,pmd_zero_copy=1 \ -- -i --nb-cores=4 --rxq=4 --txq=4 --port-topology=loop @@ -226,7 +225,7 @@ Test case 6: need_wakeup 2. Start the testpmd with one queue:: - ./testpmd -l 29,30 -n 6 --no-pci --vdev net_af_xdp0,iface=enp216s0f0 \ + ./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:: @@ -295,4 +294,4 @@ Test case 7: xdpsock sample performance 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. \ No newline at end of file + Expect the performance is better than no need_wakeup.