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 38808A0C40; Fri, 30 Jul 2021 07:50:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0B0AC40040; Fri, 30 Jul 2021 07:50:56 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id B833D4003E for ; Fri, 30 Jul 2021 07:50:54 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10060"; a="213023702" X-IronPort-AV: E=Sophos;i="5.84,281,1620716400"; d="scan'208";a="213023702" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2021 22:50:37 -0700 X-IronPort-AV: E=Sophos;i="5.84,281,1620716400"; d="scan'208";a="507769311" Received: from unknown (HELO localhost.localdomain) ([10.240.183.77]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2021 22:50:36 -0700 From: Lingli Chen To: dts@dpdk.org Cc: Lingli Chen Date: Fri, 30 Jul 2021 13:51:49 +0000 Message-Id: <20210730135149.93906-1-linglix.chen@intel.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1] test_plans/generic_flow_api: add two test cases 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" add new Test case: i40e create same rule after destroy/ i40e create diffrent rule after destroy. Signed-off-by: Lingli Chen --- test_plans/generic_flow_api_test_plan.rst | 48 +++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/test_plans/generic_flow_api_test_plan.rst b/test_plans/generic_flow_api_test_plan.rst index 71f16187..6e477f43 100644 --- a/test_plans/generic_flow_api_test_plan.rst +++ b/test_plans/generic_flow_api_test_plan.rst @@ -1996,3 +1996,51 @@ Test case: Dual vlan(QinQ) 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). + +Test case: Fortville create same rule after destroy +=================================================== + +1. Launch the app ``testpmd`` with the following arguments:: + + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1,2,3,4,5,6,7,8 -n 4 -- -i --disable-rss --rxq=16 --txq=16 + testpmd> set fwd rxonly + testpmd> set verbose 1 + testpmd> start + +2. verify rules can be create after destroy:: + + testpmd>flow create 0 ingress pattern eth / ipv4 / udp src is 32 / end actions queue index 2 / end + testpmd>flow destroy 0 rule 0 + testpmd>flow create 0 ingress pattern eth / ipv4 / udp src is 32 / end actions queue index 2 / end + +3. send packets match rule:: + + pkt1 = Ether()/IP()/UDP(sport=32)/Raw('x' * 20) + +4. send packets not match rule:: + + pkt2 = Ether()/IP()/UDP(dport=32)/Raw('x' * 20) + +Test case: Fortville create diffrent rule after destroy +======================================================= + +1. Launch the app ``testpmd`` with the following arguments:: + + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1,2,3,4,5,6,7,8 -n 4 -- -i --disable-rss --rxq=16 --txq=16 + testpmd> set fwd rxonly + testpmd> set verbose 1 + testpmd> start + +2. verify rules can be create after destroy:: + + testpmd>flow create 0 ingress pattern eth / ipv4 / udp src is 32 / end actions queue index 2 / end + testpmd>flow destroy 0 rule 0 + testpmd>flow create 0 ingress pattern eth / ipv4 / udp dst is 32 / end actions queue index 2 / end + +3. send packets match rule:: + + pkt1 = Ether()/IP()/UDP(dport=32)/Raw('x' * 20) + +4. send packets not match rule:: + + pkt2 = Ether()/IP()/UDP(sport=32)/Raw('x' * 20) -- 2.32.0