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 E87A0A034C; Wed, 23 Feb 2022 06:49:09 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9C5B941153; Wed, 23 Feb 2022 06:49:09 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 0853240DF6 for ; Wed, 23 Feb 2022 06:49:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645595348; x=1677131348; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=O8Mi0qpk7TrWz8HQ6nfQQpZCpMKmjS/X5N8xAJcrKD0=; b=CxR1cXMtf5frcuhXhS/S7CrRxMbUsOIu+J2Sc+6sccu875HmHiijOaUD ONjmgEHotQ2cgi+FIBrNjnkKMVg8RyojRzCAcDJdkdXjFVndNXiBJgqrv ubke8HXYjkEnLjrVsy19VStnwjYl3jDmYe9N7sbcA7h3u2xqnnl6nBaN7 bulrkIzu6ayZzIa3fDPRxHQb63jnYAVZ6ROvwmmtCsRB0RsmbwQVU2ZMX lB7i5z//dcso9oFJvAPXjXfV3la1tfJ64ligT/zowV2ciWD7kv7naAC+U jKB9xDo9hP6ZcG870jyoEE1ocIVFKQHlGhyTLsz8hGAINtf5ItwG/JEzI w==; X-IronPort-AV: E=McAfee;i="6200,9189,10266"; a="231864319" X-IronPort-AV: E=Sophos;i="5.88,390,1635231600"; d="scan'208";a="231864319" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2022 21:49:07 -0800 X-IronPort-AV: E=Sophos;i="5.88,390,1635231600"; d="scan'208";a="491069552" Received: from unknown (HELO localhost.localdomain) ([10.239.251.226]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2022 21:49:05 -0800 From: Yu Jiang To: lijuan.tu@intel.com, dts@dpdk.org Cc: Yu Jiang Subject: [dts][PATCH V1 2/5] test_plans/*: modify test plan to adapt meson build Date: Wed, 23 Feb 2022 13:48:35 +0000 Message-Id: <20220223134838.509099-3-yux.jiang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220223134838.509099-1-yux.jiang@intel.com> References: <20220223134838.509099-1-yux.jiang@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 test_plans/*: modify test plan to adapt meson build, including sw_hw_thash_consistence,telemetry,vdev_primary_secondary,vf_packet_rxtx Signed-off-by: Yu Jiang --- .../sw_hw_thash_consistence_test_plan.rst | 9 +++---- test_plans/telemetry_test_plan.rst | 14 +++++++---- .../vdev_primary_secondary_test_plan.rst | 24 ++++++++++++------- test_plans/vf_packet_rxtx_test_plan.rst | 2 +- 4 files changed, 30 insertions(+), 19 deletions(-) diff --git a/test_plans/sw_hw_thash_consistence_test_plan.rst b/test_plans/sw_hw_thash_consistence_test_plan.rst index a263b3d2..979b21fc 100644 --- a/test_plans/sw_hw_thash_consistence_test_plan.rst +++ b/test_plans/sw_hw_thash_consistence_test_plan.rst @@ -44,13 +44,14 @@ First apply a DPDK patch, which provide an example for calling rte_hash :: Compile the example :: - export RTE_SDK= - cd /examples/thash - make + CC=gcc meson -Denable_kmods=True -Dlibdir=lib --default-library=static + ninja -C + meson configure -Dexamples=thash + ninja -C Run thash example, which supported format: thash_test TYPE(ipv4|ipv4-udp|ipv4-tcp) IP_DST IP_SRC PORT_DST PORT_SRC :: - ./build/thash_test ipv6 ::22 ::11 1234 4321 + .//examples/dpdk-thash_test ipv6 ::22 ::11 1234 4321 # The output ipv6 ::22 diff --git a/test_plans/telemetry_test_plan.rst b/test_plans/telemetry_test_plan.rst index 07983206..4dd63681 100644 --- a/test_plans/telemetry_test_plan.rst +++ b/test_plans/telemetry_test_plan.rst @@ -58,9 +58,13 @@ Prerequisites 1. Enable the telemetry API by modifying the following config option before building DPDK:: Python >= 2.5 - Jansson library for JSON serialization - CONFIG_RTE_LIBRTE_TELEMETRY=y and libjansson should be available - make install RTE_SDK=`pwd` T=x86_64-native-linuxapp-gcc + Jansson library for JSON serialization, libjansson should be available + RTE_LIB_TELEMETRY is 1 by default in /rte_build_config.h: + #define RTE_LIB_TELEMETRY 1 + + Build DPDK: + CC=gcc meson -Denable_kmods=True -Dlibdir=lib --default-library=static + ninja -C 2. Configiure PF @@ -68,7 +72,7 @@ Prerequisites insmod x86_64-native-linuxapp-gcc/kmod/igb_uio.ko; 3. Launch testpmd as the primary application with the ``telemetry`` - ./app/testpmd --telemetry + .//app/dpdk-testpmd --telemetry 4. Launch the ``telemetry`` python script with a client filepath : @@ -95,7 +99,7 @@ Test case: basic connection for testpmd and telemetry client:: For the building meson shared and make shared . tested command should be used when run on ubuntu OS make share and meson version:: - $ ./app/testpmd -c f -n 4 -d librte_mempool_ring.so -d librte_telemetry.so --telemetry --socket-mem=1024,1024 -- -i + $ .//app/dpdk-testpmd -c f -n 4 -d librte_mempool_ring.so -d librte_telemetry.so --telemetry --socket-mem=1024,1024 -- -i 3.Run Python terminal: python dpdk-telemetry-client.py diff --git a/test_plans/vdev_primary_secondary_test_plan.rst b/test_plans/vdev_primary_secondary_test_plan.rst index cb78d192..b9ffd030 100644 --- a/test_plans/vdev_primary_secondary_test_plan.rst +++ b/test_plans/vdev_primary_secondary_test_plan.rst @@ -91,14 +91,20 @@ The secondary symmetric_mp instances must also have these parameters specified, and the first two must be the same as those passed to the primary instance, or errors result. -For example, to run a set of four symmetric_mp instances, running on lcores 1-4, all +For example, +to build symmetric_mp:: + + meson configure -Dexamples=multi_process/symmetric_mp + ninja -C + +to run a set of four symmetric_mp instances, running on lcores 1-4, all performing level-2 forwarding of packets between ports 0 and 1, the following commands can be used (assuming run as root):: - ./build/symmetric_mp -c 2 --proc-type=auto -- -p 3 --num-procs=4 --proc-id=0 - ./build/symmetric_mp -c 4 --proc-type=auto -- -p 3 --num-procs=4 --proc-id=1 - ./build/symmetric_mp -c 8 --proc-type=auto -- -p 3 --num-procs=4 --proc-id=2 - ./build/symmetric_mp -c 10 --proc-type=auto -- -p 3 --num-procs=4 --proc-id=3 + .//examples/dpdk-symmetric_mp -c 2 --proc-type=auto -- -p 3 --num-procs=4 --proc-id=0 + .//examples/dpdk-symmetric_mp -c 4 --proc-type=auto -- -p 3 --num-procs=4 --proc-id=1 + .//examples/dpdk-symmetric_mp -c 8 --proc-type=auto -- -p 3 --num-procs=4 --proc-id=2 + .//examples/dpdk-symmetric_mp -c 10 --proc-type=auto -- -p 3 --num-procs=4 --proc-id=3 To run only 1 or 2 instances, the above parameters to the 1 or 2 instances being run should remain the same, except for the ``num-procs`` value, which should be @@ -168,8 +174,8 @@ SW preparation: Change one line of the symmetric_mp sample and rebuild:: 4. Launch two process by example:: - ./examples/multi_process/symmetric_mp/build/symmetric_mp -l 1 -n 4 --proc-type=auto -- -p 3 --num-procs=2 --proc-id=0 - ./examples/multi_process/symmetric_mp/build/symmetric_mp -l 2 -n 4 --proc-type=secondary -- -p 3 --num-procs=2 --proc-id=1 + .//examples/dpdk-symmetric_mp -l 1 -n 4 --proc-type=auto -- -p 3 --num-procs=2 --proc-id=0 + .//examples/dpdk-symmetric_mp -l 2 -n 4 --proc-type=secondary -- -p 3 --num-procs=2 --proc-id=1 5. Quit all process, check the packets number in rx/tx statistic like below for both primary process and secondary process:: @@ -206,7 +212,7 @@ Test Case 2: Virtio-pmd primary and secondary process hotplug test 4. Start sample code as primary process:: - ./examples/multi_process/hotplug_mp/build/hotplug_mp --proc-type=auto -- -p 3 --num-procs=2 --proc-id=0 + .//examples/dpdk-symmetric_mp --proc-type=auto -- -p 3 --num-procs=2 --proc-id=0 example> list list all etherdev 0 0000:00:05.0 @@ -214,7 +220,7 @@ Test Case 2: Virtio-pmd primary and secondary process hotplug test 5. Start sample code as secondary process:: - ./examples/multi_process/hotplug_mp/build/hotplug_mp --proc-type=secondary -- -p 3 --num-procs=2 --proc-id=1 + .//examples/dpdk-symmetric_mp --proc-type=secondary -- -p 3 --num-procs=2 --proc-id=1 example> list list all etherdev 0 0000:00:05.0 diff --git a/test_plans/vf_packet_rxtx_test_plan.rst b/test_plans/vf_packet_rxtx_test_plan.rst index a3ff86cb..69b18038 100644 --- a/test_plans/vf_packet_rxtx_test_plan.rst +++ b/test_plans/vf_packet_rxtx_test_plan.rst @@ -311,7 +311,7 @@ this case pf in kernel testpmd> set fwd mac testpmd> start 7. On vm 1:: - ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 1 -- -i + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 1 -- -i 8. On vm0:: -- 2.25.1