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 81D94A0093; Thu, 23 Jun 2022 13:37:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A9F640146; Thu, 23 Jun 2022 13:37:31 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id BC6624003F for ; Thu, 23 Jun 2022 13:37:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655984249; x=1687520249; h=from:to:cc:subject:date:message-id; bh=g5npnjZCBSN6Mjc6t8qvhVhPz3MUwhTfAFVrg9Yto0E=; b=OejAwhcTOAkBp7ZViJZuMq/FPwFAVtB/Ga74vU8fTwlh2uyRq0eX7w3f yaifm6Dt9XV6pQsGaXIwxxKMdAoKeOw68UKF4Vv5wFULvXsv+QClLgu1y CaLitgSyxdYuf3boVj3RcsvzkdysA35rDjLB1p17neWjFYJ1ezXtGG8qc uwtbuSJKJFmomi/CUGL7vCEjQ1YV7wd6gT4Gq2PbvhfTh4xFCl06ay67q VSZ8NR0nwAYlpS83NJDrZe3Uvgh/SS3LCD7TLQDfzdy68WrCWXTcdLehz rzX43mECS2/uCfLVtS6Yia/ATU75XJnQabgM4dTw+LyXk/olYkymGUD4b w==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="261125777" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="261125777" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 04:37:27 -0700 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="644696797" Received: from unknown (HELO localhost.localdomain) ([10.239.252.93]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 04:37:26 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Subject: [dts][PATCH V1] ice_advanced_rss_pppoe:add check result after deleting the rules Date: Fri, 24 Jun 2022 04:01:50 +0800 Message-Id: <20220623200153.6607-1-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.17.1 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 test steps about after delete rule. Signed-off-by: Zhimin Huang --- test_plans/ice_advanced_rss_pppoe_test_plan.rst | 8 +++++--- tests/TestSuite_ice_advanced_rss_pppoe.py | 3 +++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/test_plans/ice_advanced_rss_pppoe_test_plan.rst b/test_plans/ice_advanced_rss_pppoe_test_plan.rst index 400f3a71..0b64cc79 100644 --- a/test_plans/ice_advanced_rss_pppoe_test_plan.rst +++ b/test_plans/ice_advanced_rss_pppoe_test_plan.rst @@ -4621,12 +4621,14 @@ Subcase 3: two rules, scope smaller created first, and the larger one created la testpmd> flow destroy 0 rule 1 testpmd> flow list 0 - check the rule 1 not exists in the list. + check the rule 1 not exists in the list, and repeat step 2 destroy the rule 0:: testpmd> flow destroy 0 rule 0 testpmd> flow list 0 + check not rule in the list, and send all pkts have no hash values. + Subcase 4: two rules, scope larger created first, and the smaller one created later ----------------------------------------------------------------------------------- @@ -4679,10 +4681,10 @@ Subcase 4: two rules, scope larger created first, and the smaller one created la testpmd> flow destroy 0 rule 1 testpmd> flow list 0 - check the rule 1 not exists in the list. + check the rule 1 not exists in the list, and repeat step 2 destroy the rule 0:: testpmd> flow destroy 0 rule 0 testpmd> flow list 0 - + check not rule in the list, and send all pkts have no hash values. \ No newline at end of file diff --git a/tests/TestSuite_ice_advanced_rss_pppoe.py b/tests/TestSuite_ice_advanced_rss_pppoe.py index 59e48988..ebb644f6 100644 --- a/tests/TestSuite_ice_advanced_rss_pppoe.py +++ b/tests/TestSuite_ice_advanced_rss_pppoe.py @@ -5166,9 +5166,12 @@ class Advanced_rss_pppoe(TestCase): # destory rule 1 self.rsspro.destroy_rule(rule_id=1) self.rsspro.check_rule(rule_list=["1"], stats=False) + pkt_list[1], pkt_list[2] = pkt_list[2], pkt_list[1] + self._send_pkt_action(pkt_list) # destory rule 0 self.rsspro.destroy_rule(rule_id=0) self.rsspro.check_rule(rule_list=["0"], stats=False) + self._send_pkt_action(pkt_list, action_list=["check_no_hash"] * 3) def test_two_rules_smaller_first_larger_later( self, -- 2.17.1