From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id B9A4F23C for ; Tue, 21 Nov 2017 08:05:00 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Nov 2017 23:04:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,432,1505804400"; d="scan'208";a="1246711221" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 20 Nov 2017 23:04:58 -0800 From: Peng Yuan To: dts@dpdk.org Cc: Peng Yuan Date: Tue, 21 Nov 2017 15:06:11 +0800 Message-Id: <1511247971-53496-1-git-send-email-yuan.peng@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH v2] test_plans: modify the L2 tunnel filter command format X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2017 07:05:01 -0000 Signed-off-by: Peng Yuan diff --git a/test_plans/generic_flow_api_test_plan.rst b/test_plans/generic_flow_api_test_plan.rst index f7ce61e..39a4886 100644 --- a/test_plans/generic_flow_api_test_plan.rst +++ b/test_plans/generic_flow_api_test_plan.rst @@ -803,19 +803,21 @@ Test case: IXGBE L2-tunnel(supported by x552 and x550) echo 2 >/sys/bus/pci/devices/0000:05:00.0/max_vfs ./usertools/dpdk-devbind.py -b vfio-pci 05:02.0 05:02.1 -1. Launch the app ``testpmd`` with the following arguments:: +1. Launch the app ``testpmd`` with the following arguments + this filter doesn't care about the queue index, + so remove "--disable-rss":: - ./x86_64-native-linuxapp-gcc/app/testpmd -c 1ffff -n 4 -w 05:00.0 --file-prefix=pf --socket-mem=1024,1024 -- -i --rxq=16 --txq=16 --disable-rss + ./x86_64-native-linuxapp-gcc/app/testpmd -c 1f -n 4 -w 05:00.0 --file-prefix=pf --socket-mem=1024,1024 -- -i --rxq=4 --txq=4 --txqflags=0 testpmd> set fwd rxonly testpmd> set verbose 1 testpmd> start - ./x86_64-native-linuxapp-gcc/app/testpmd -c 1e0000 -n 4 -w 05:02.0 --file-prefix=vf0 --socket-mem=1024,1024 -- -i --rxq=4 --txq=4 --disable-rss + ./x86_64-native-linuxapp-gcc/app/testpmd -c 1e0 -n 4 -w 05:02.0 --file-prefix=vf0 --socket-mem=1024,1024 -- -i --rxq=4 --txq=4 --txqflags=0 testpmd> set fwd rxonly testpmd> set verbose 1 testpmd> start - ./x86_64-native-linuxapp-gcc/app/testpmd -c 1e00000 -n 4 -w 05:02.1 --file-prefix=vf1 --socket-mem=1024,1024 -- -i --rxq=4 --txq=4 --disable-rss + ./x86_64-native-linuxapp-gcc/app/testpmd -c 1e00 -n 4 -w 05:02.1 --file-prefix=vf1 --socket-mem=1024,1024 -- -i --rxq=4 --txq=4 --txqflags=0 testpmd> set fwd rxonly testpmd> set verbose 1 testpmd> start @@ -830,9 +832,9 @@ Test case: IXGBE L2-tunnel(supported by x552 and x550) 2. create filter rules:: - testpmd> flow create 0 ingress pattern e_tag grp_ecid_b is 0x1309 / end actions queue index 0 / end - testpmd> flow create 0 ingress pattern e_tag grp_ecid_b is 0x1308 / end actions queue index 1 / end - testpmd> flow create 0 ingress pattern e_tag grp_ecid_b is 0x1307 / end actions queue index 2 / end + testpmd> flow create 0 ingress pattern e_tag grp_ecid_b is 0x1309 / end actions vf id 0 / end + testpmd> flow create 0 ingress pattern e_tag grp_ecid_b is 0x1308 / end actions vf id 1 / end + testpmd> flow create 0 ingress pattern e_tag grp_ecid_b is 0x1307 / end actions pf / end 3. send packets:: @@ -841,7 +843,7 @@ Test case: IXGBE L2-tunnel(supported by x552 and x550) pkt3 = Ether(dst="00:11:22:33:44:55")/Dot1BR(GRP=0x1, ECIDbase=0x307)/Raw('x' * 20) pkt4 = Ether(dst="00:11:22:33:44:55")/Dot1BR(GRP=0x2, ECIDbase=0x309)/Raw('x' * 20) - verify pkt1 to vf0 queue0, pkt2 to vf1 queue0, pkt3 to pf queue0, + verify pkt1 to vf0, pkt2 to vf1, pkt3 to pf, pkt4 can't received by pf and vfs. 4. verify rules can be listed and destroyed:: -- 2.5.0