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 B74FCA034F; Tue, 30 Mar 2021 10:13:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7C5B2406FF; Tue, 30 Mar 2021 10:13:48 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id EFC24406B4 for ; Tue, 30 Mar 2021 10:13:43 +0200 (CEST) IronPort-SDR: CpafSdRSRAs8/otQ9Tl34LpSYI7pdDrUFBRzXse7PRiDqvgznO0XDj83NrsUTvtFXdbbZn1eMP uskvhX18cEaQ== X-IronPort-AV: E=McAfee;i="6000,8403,9938"; a="179261748" X-IronPort-AV: E=Sophos;i="5.81,290,1610438400"; d="scan'208";a="179261748" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2021 01:13:40 -0700 IronPort-SDR: eNaWVKmyeVag9qi6B8KldrtHW5znSvHugSg37Bd+t/0qeMFW1oSWx3QsieIfHtqjVrihGz2efQ F7tghG2uHs9w== X-IronPort-AV: E=Sophos;i="5.81,290,1610438400"; d="scan'208";a="610024734" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2021 01:13:39 -0700 From: Xia Yan To: dts@dpdk.org Cc: Xia Yan Date: Tue, 30 Mar 2021 16:18:28 +0800 Message-Id: <20210330081828.18432-1-yanx.xia@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/generic_flow_api: put validate rule after create rule 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" it's not work if execute validate rule before execute create rule, so put validate after create rule. Signed-off-by: Xia Yan --- tests/TestSuite_generic_flow_api.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_generic_flow_api.py b/tests/TestSuite_generic_flow_api.py index 6822f8ab..5f9de37c 100644 --- a/tests/TestSuite_generic_flow_api.py +++ b/tests/TestSuite_generic_flow_api.py @@ -705,19 +705,19 @@ class TestGeneric_flow_api(TestCase): time.sleep(2) # create the flow rules basic_flow_actions = [ - {'create': 'validate', 'flows': ['ipv4', 'sip', 'dip'], 'actions': ['queue']}, - {'create': 'validate', 'flows': ['ipv4', 'sip', 'dip', 'proto', 'udp', 'sport', 'dport'], - 'actions': ['queue']}, - {'create': 'validate', 'flows': ['ipv4', 'sip', 'dip', 'proto', 'tcp', 'sport', 'dport'], - 'actions': ['queue']}, - {'create': 'validate', 'flows': ['ipv4', 'sip', 'dip', 'proto', 'sctp', 'sport', 'dport'], - 'actions': ['queue']}, {'create': 'create', 'flows': ['ipv4', 'sip', 'dip'], 'actions': ['queue']}, {'create': 'create', 'flows': ['ipv4', 'sip', 'dip', 'proto', 'udp', 'sport', 'dport'], 'actions': ['queue']}, {'create': 'create', 'flows': ['ipv4', 'sip', 'dip', 'proto', 'tcp', 'sport', 'dport'], 'actions': ['queue']}, {'create': 'create', 'flows': ['ipv4', 'sip', 'dip', 'proto', 'sctp', 'sport', 'dport'], + 'actions': ['queue']}, + {'create': 'validate', 'flows': ['ipv4', 'sip', 'dip'], 'actions': ['queue']}, + {'create': 'validate', 'flows': ['ipv4', 'sip', 'dip', 'proto', 'udp', 'sport', 'dport'], + 'actions': ['queue']}, + {'create': 'validate', 'flows': ['ipv4', 'sip', 'dip', 'proto', 'tcp', 'sport', 'dport'], + 'actions': ['queue']}, + {'create': 'validate', 'flows': ['ipv4', 'sip', 'dip', 'proto', 'sctp', 'sport', 'dport'], 'actions': ['queue']} ] extrapkt_rulenum = self.all_flows_process(basic_flow_actions) -- 2.17.1