From patchwork Fri Jul 30 14:10:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 96440 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 E969BA0C46; Fri, 30 Jul 2021 08:09:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9156D40040; Fri, 30 Jul 2021 08:09:05 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 895A04003E for ; Fri, 30 Jul 2021 08:09:04 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10060"; a="213070011" X-IronPort-AV: E=Sophos;i="5.84,281,1620716400"; d="scan'208";a="213070011" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2021 23:09:03 -0700 X-IronPort-AV: E=Sophos;i="5.84,281,1620716400"; d="scan'208";a="507772878" 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 23:09:01 -0700 From: Lingli Chen To: dts@dpdk.org Cc: Lingli Chen Date: Fri, 30 Jul 2021 14:10:13 +0000 Message-Id: <20210730141013.94034-1-linglix.chen@intel.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 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 different 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..2c87da44 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 different 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)