From patchwork Tue Jul 12 15:44:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 113921 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 EA70CA0032; Tue, 12 Jul 2022 09:23:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B0E5541109; Tue, 12 Jul 2022 09:23:00 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id BFE88410EF for ; Tue, 12 Jul 2022 09:22:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657610579; x=1689146579; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=EnnCebdKl6NneDZozdIKIxKrPR6e71FjhmcaOh5jD7k=; b=Ljgx5K74lJe4VCphVRhaO/vkSftYHV8WA38uuM2V6h8eXT4AgRXd/Ist bUliGkRSJZP3WPmLHYQJtZZf6Xqelqp6W+ZnT0CPS5k66rCJfPlyk4vfy n+VZHpnYUD671UnbMyY6YkqNL0X5XAkBx434IA5soMbIpyQk2Q2kvL41D 0MTfs8Ej+ESAMcHJX6LSMqbJLfI8i4O1l4VbNFidSAB0VJQDoAUs9aFrR iFHTAkObTz7QGMe71NCKKMHIJ0V+gpyZcLjLrjBdwAfHgs5xg0QWNdD/Z 3L1F65b0wAzIRgu4Rc+Zm27f32XrAO3ayyQf8P1d4ojGcPR6aafdM9Bok A==; X-IronPort-AV: E=McAfee;i="6400,9594,10405"; a="371168929" X-IronPort-AV: E=Sophos;i="5.92,265,1650956400"; d="scan'208";a="371168929" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jul 2022 00:22:56 -0700 X-IronPort-AV: E=Sophos;i="5.92,265,1650956400"; d="scan'208";a="570089401" Received: from unknown (HELO cvl_tetser_105.icx.intel.com) ([10.239.252.94]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jul 2022 00:22:55 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1] test_plans/ice_dcf_date_path: modify the format of test plan Date: Tue, 12 Jul 2022 15:44:56 +0000 Message-Id: <20220712154456.29293-1-songx.jiale@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 add license info, title,description and prerequisites. Signed-off-by: Jiale Song --- test_plans/ice_dcf_date_path_test_plan.rst | 70 +++++++++++++++++----- 1 file changed, 54 insertions(+), 16 deletions(-) diff --git a/test_plans/ice_dcf_date_path_test_plan.rst b/test_plans/ice_dcf_date_path_test_plan.rst index 1a0df884..780dd63d 100644 --- a/test_plans/ice_dcf_date_path_test_plan.rst +++ b/test_plans/ice_dcf_date_path_test_plan.rst @@ -1,20 +1,66 @@ +.. SPDX-License-Identifier: BSD-3-Clause + Copyright(c) 2019 Intel Corporation -Common steps for launching DCF -============================== +================================ +ICE DCF date path function +================================ -Generate 1 trust VF on 1 PF, and request 1 DCF on the trust VF. -PF should grant DCF mode to it. +Description +=========== +* DCF data path support RSS packets by default. +* For L3 packets, input set is IP src/dst. +* For tunneling packets, input set is inner IP src/dst -Generate 4 VFs on PF :: + +Prerequisites +============= +1. Hardware: + IntelĀ® Ethernet 800 Series: E810-XXVDA4/E810-CQ + +2. Software: + dpdk: http://dpdk.org/git/dpdk + scapy: http://www.secdev.org/projects/scapy/ + +3. Copy specific ice package to /lib/firmware/updates/intel/ice/ddp/ice.pkg, + then load driver:: + + rmmod ice + insmod ice.ko + +4. Compile DPDK:: + + CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + ninja -C x86_64-native-linuxapp-gcc -j 110 + +5. Get the pci device id of DUT, for example:: + + ./usertools/dpdk-devbind.py -s + + 0000:18:00.0 'Device 159b' if=ens785f0 drv=ice unused=vfio-pci + 0000:18:00.1 'Device 159b' if=ens785f1 drv=ice unused=vfio-pci +6. Generate 4 VFs on PF0(not all the VFs are used):: echo 4 > /sys/bus/pci/devices/0000:18:00.0/sriov_numvfs -Set a VF as trust :: + ./usertools/dpdk-devbind.py -s + 0000:18:01.0 'Ethernet Adaptive Virtual Function 1889' if=ens785f0v0 drv=iavf unused=vfio-pci + 0000:18:01.1 'Ethernet Adaptive Virtual Function 1889' if=ens785f0v1 drv=iavf unused=vfio-pci + 0000:18:01.2 'Ethernet Adaptive Virtual Function 1889' if=ens785f0v2 drv=iavf unused=vfio-pci + 0000:18:01.3 'Ethernet Adaptive Virtual Function 1889' if=ens785f0v3 drv=iavf unused=vfio-pci + +7. Set VF0 as trust:: + + ip link set ens785f0 vf 0 trust on + +8. Set mac addr for VF1:: - ip link set enp24s0f0 vf 0 trust on ip link set enp27s0f0 vf 0 mac D2:6B:4C:EB:1C:26 -Launch dpdk on the VF, request DCF mode :: +9. Bind VFs to dpdk driver:: + + ./usertools/dpdk-devbind.py -b vfio-pci 0000:18:01.0 0000:18:01.1 0000:18:01.2 0000:18:01.3 + +10.Launch dpdk on the VF, request DCF mode :: ./usertools/dpdk-devbind.py -b vfio-pci 18:01.0 ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-10 -n 4 -a 18:01.0,cap=dcf --file-prefix=vf -- -i @@ -23,8 +69,6 @@ Launch dpdk on the VF, request DCF mode :: Test Case: Launch DCF and do macfwd =================================== -Execute **common steps** to prepare DCF test environment - Set macfwd :: set fwd mac @@ -48,8 +92,6 @@ Test Case: Check default rss for L3 DCF data path support RSS packets by default. For L3 packets, input set is IP src/dst. For tunneling packets, input set is inner IP src/dst. -Execute **common steps** to prepare DCF test environment - Set rxonly forward mode :: set fwd rxonly @@ -104,8 +146,6 @@ Test Case: Check default rss for L4 DCF data path support RSS packets by default. For L3 packets, input set is IP src/dst. For tunneling packets, input set is inner IP src/dst. -Execute **common steps** to prepare DCF test environment - Set rxonly forward mode :: set fwd rxonly @@ -166,8 +206,6 @@ Test Case: Create rule with to original VF action DCF data path support RSS packets by default. For L3 packets, input set is IP src/dst. For tunneling packets, input set is inner IP src/dst. -Execute **common steps** to prepare DCF test environment - Set rxonly forward mode :: set fwd rxonly