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 2888DA0C55; Mon, 1 Nov 2021 04:31:58 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 23E9741104; Mon, 1 Nov 2021 04:31:58 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 5A02640DF6 for ; Mon, 1 Nov 2021 04:31:56 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10154"; a="231202985" X-IronPort-AV: E=Sophos;i="5.87,198,1631602800"; d="scan'208";a="231202985" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2021 20:31:56 -0700 X-IronPort-AV: E=Sophos;i="5.87,198,1631602800"; d="scan'208";a="637668855" Received: from unknown (HELO localhost.localdomain) ([10.240.183.103]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2021 20:31:54 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Date: Mon, 1 Nov 2021 20:00:56 +0800 Message-Id: <20211101120056.12228-5-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211101120056.12228-1-zhiminx.huang@intel.com> References: <20211101120056.12228-1-zhiminx.huang@intel.com> Subject: [dts] [PATCH V1 5/5] tests/rte_flow_common:modify flow common to adapt dpdk changed 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" 1.according to 54d78462344e2b3ec0a54cb6f13af0bf3da47032. the default rss not support ipfrag rss, need take a rss rule to enable ipfrag rss for fdir test. fix rte flow common code to adapt dts changed. Signed-off-by: Zhimin Huang --- tests/rte_flow_common.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/rte_flow_common.py b/tests/rte_flow_common.py index eae24e2e..fb76bf86 100644 --- a/tests/rte_flow_common.py +++ b/tests/rte_flow_common.py @@ -1252,6 +1252,11 @@ class FdirProcessing(object): drop = tv["check_param"].get("drop") # create rule self.test_case.dut.send_expect("flow flush %d" % port_id, "testpmd> ", 120) + rule_rss = [] + if "tv_mac_ipv4_frag_fdir" in tv['name']: + rule_rss = self.create_rule("flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4-frag end key_len 0 queues end / end") + elif "tv_mac_ipv6_frag_fdir" in tv['name']: + rule_rss = self.create_rule("flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext / end actions rss types ipv6-frag end key_len 0 queues end / end") rule_li = self.create_rule(tv["rule"]) # send and check match packets out1 = self.send_pkt_get_output(pkts=tv["scapy_str"]["matched"], port_id=port_id, drop=drop) @@ -1274,7 +1279,10 @@ class FdirProcessing(object): self.verify(matched_queue == matched_queue2 and None not in matched_queue, "send twice matched packet, received in deferent queues") # check not rule exists - self.check_rule(port_id=port_id, stats=False) + if rule_rss: + self.check_rule(port_id=tv["check_param"]["port_id"], rule_list=rule_rss) + else: + self.check_rule(port_id=port_id, stats=False) test_results[tv["name"]] = True self.logger.info((GREEN("case passed: %s" % tv["name"]))) except Exception as e: -- 2.17.1