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 6730CA0C46; Fri, 23 Jul 2021 11:00:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F5814014D; Fri, 23 Jul 2021 11:00:59 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id F1C2840040 for ; Fri, 23 Jul 2021 11:00:57 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10053"; a="275661212" X-IronPort-AV: E=Sophos;i="5.84,263,1620716400"; d="scan'208";a="275661212" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2021 02:00:57 -0700 X-IronPort-AV: E=Sophos;i="5.84,263,1620716400"; d="scan'208";a="502439063" Received: from unknown (HELO DPDK-CVL-tetser102.icx.intel.com) ([10.240.183.102]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2021 02:00:55 -0700 From: Yan Xia To: dts@dpdk.org Cc: Yan Xia Date: Fri, 23 Jul 2021 17:32:55 +0000 Message-Id: <20210723173255.22126-1-yanx.xia@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] test_plans/generic_flow_api: add case dual_vlan 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 Sender: "dts" move test_dual_vlan in fortville_rss_granularity_config_test_plan.rst to generic_flow_api_test_plan.rst and modify lengacy command. Signed-off-by: Yan Xia --- generic_flow_api_test_plan.diff | 60 +++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 generic_flow_api_test_plan.diff diff --git a/generic_flow_api_test_plan.diff b/generic_flow_api_test_plan.diff new file mode 100644 index 00000000..1d991460 --- /dev/null +++ b/generic_flow_api_test_plan.diff @@ -0,0 +1,60 @@ +diff --git a/test_plans/generic_flow_api_test_plan.rst b/test_plans/generic_flow_api_test_plan.rst +index 6a36a63..71f1618 100644 +--- a/test_plans/generic_flow_api_test_plan.rst ++++ b/test_plans/generic_flow_api_test_plan.rst +@@ -1944,3 +1944,55 @@ Test case: Fortville fdir for l2 mac + testpmd> flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 3 / rss / end + + Verify second rule can not be created. ++ ++Test case: Dual vlan(QinQ) ++================================= ++ ++1. config testpmd on DUT ++ ++ 1. set up testpmd with Fortville NICs:: ++ ++ ./testpmd -c 0x1ffff -n 4 -- -i --coremask=0x1fffe --portmask=0x1 --rxq=16 --txq=16 --tx-offloads=0x8fff ++ ++ 2. verbose configuration:: ++ ++ testpmd> set verbose 8 ++ ++ 3. PMD fwd only receive the packets:: ++ ++ testpmd> set fwd rxonly ++ ++ 4. set extend on:: ++ ++ testpmd> vlan set extend on ++ ++ 5. create rule:: ++ ++ testpmd> flow create 0 ingress pattern eth / end actions rss types l2-payload end queues end func toeplitz / end ++ ++ 6. start packet receive:: ++ ++ testpmd> start ++ ++ ++2. using scapy to send packets with dual vlan (QinQ) on tester:: ++ ++ ++ sendp([Ether(dst="68:05:ca:30:6a:f8")/Dot1Q(id=0x8100,vlan=1)/Dot1Q(id=0x8100,vlan=2,type=0xaaaa)/Raw(load="x"*60)], iface=ttester_itf) ++ ++ then got hash value and queue value that output from the testpmd on DUT. ++ ++3. create flow rss type s-vlan c-vlan by testpmd on dut:: ++ ++ ++ testpmd> flow create 0 ingress pattern eth / end actions rss types s-vlan c-vlan end key_len 0 queues end / end ++ ++ 1). send packet as step 2, got hash value and queue value that output from the testpmd on DUT, the value should be ++ different with the values in step 2. ++ ++ ++ 2). send packet as step 2 with changed ovlan id, got hash value and queue value that output from the testpmd on DUT, the value should be ++ different with the values in step 2 & step 1). ++ ++ 3). send packet as step 2 with changed ivlan id, got hash value and queue value that output from the testpmd on DUT, the value should be ++ different with the values in step 2 & step 1) & step 2). -- 2.17.1