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 C631CA0545; Thu, 15 Dec 2022 08:39:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7728442D0C; Thu, 15 Dec 2022 08:39:52 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 7A98240684 for ; Thu, 15 Dec 2022 08:39:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671089990; x=1702625990; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=Z54JWYqeswyQ6M77TU+l81raou16mXWViZ7ih+edhxk=; b=TJzVJOvi4O9LWuAB5nrv+eLuKZO1ORfGISw6A0SRP9+eyXB6fWoUS/Bn nleENnMk2F3OHC67FErlvZOvEwNhurTuRmE5gmlE4AK/5bEPcQ89hnOA8 Kk7+RhfuWY6XctGdJVlwIvZ7F0tgD4VK3+fcgSg/roTxkLE1W4SPa5S/B Rt6VYfyGfMFgttWInm/ANeYms5pPmq0Hb2fRc1v+CYLJM3H1LdDw/e/pc 7kloxEvvYdlcSxOT/krl5o4jMPVuSBZrOucdzzfSO3OUuqAyV4LZmuRyF kxSyDyOn2JxYWGgTcjwy9oh2C3dVJnl9uAZHEOagQND2o9oWpdQm7Mile g==; X-IronPort-AV: E=McAfee;i="6500,9779,10561"; a="345697257" X-IronPort-AV: E=Sophos;i="5.96,246,1665471600"; d="scan'208";a="345697257" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2022 23:39:48 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10561"; a="651448139" X-IronPort-AV: E=Sophos;i="5.96,246,1665471600"; d="scan'208";a="651448139" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2022 23:39:18 -0800 From: Lingli Chen To: dts@dpdk.org Cc: zhiminx.huang@intel.com, Lingli Chen Subject: [dts][PATCH V1 2/8] tests/ddp_gtp_qregion: remove --pkt-filter-mode sync dpdk change Date: Thu, 15 Dec 2022 01:41:58 -0500 Message-Id: <20221215064204.30802-2-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221215064204.30802-1-linglix.chen@intel.com> References: <20221215064204.30802-1-linglix.chen@intel.com> 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 According to dpdk commit 5007ac1318 (ethdev: remove deprecated Flow Director configuration) remove flow_director_filter raw pkt test case. Signed-off-by: Lingli Chen --- tests/TestSuite_ddp_gtp_qregion.py | 140 +---------------------------- 1 file changed, 1 insertion(+), 139 deletions(-) diff --git a/tests/TestSuite_ddp_gtp_qregion.py b/tests/TestSuite_ddp_gtp_qregion.py index a3dea1b2..08048b3f 100644 --- a/tests/TestSuite_ddp_gtp_qregion.py +++ b/tests/TestSuite_ddp_gtp_qregion.py @@ -56,7 +56,7 @@ class TestDdpGtpQregion(TestCase): """ self.dut_testpmd.start_testpmd( "Default", - "--pkt-filter-mode=perfect --port-topology=chained \ + "--port-topology=chained \ --txq=%s --rxq=%s" % (self.PF_QUEUE, self.PF_QUEUE), ) @@ -288,62 +288,6 @@ class TestDdpGtpQregion(TestCase): "Failed update flow type to pctype mapping!!!", ) - def run_fd_test(self, crlwords, flowtype, pctype, keywords, qchecks): - """ - Use dynamic flowtype/pctype mapping, use default or dynamic change - control words to set flow director input configuration for new - protocol, setup raw flow type filter for flow director, check flow - director could work. - crlwords: control words of keyword - flowtype: define flow type 23~63 values for GTP packet types as test - plan table. - pctype: profile defines below 10~25 pctypes for GTP packet types. - keywords: keywords have Session ID, S-Port, D-Port, IP SA, IP DA and - etc. - qchecks: define sameq and difq. If change keywords, direct packets to - queue 0, otherwise direct packets to same queue. - """ - - self.flowtype_pctype_mapping(flowtype, pctype) - if crlwords is not None: - self.dut_testpmd.execute_cmd("port stop all") - time.sleep(1) - self.dut_testpmd.execute_cmd( - "port config 0 pctype %s fdir_inset clear all" % pctype - ) - for word in crlwords: - self.dut_testpmd.execute_cmd( - "port config 0 pctype %s fdir_inset set field %s" % (pctype, word) - ) - self.dut_testpmd.execute_cmd("port start all") - self.dut_testpmd.execute_cmd("set fwd rxonly") - self.dut_testpmd.execute_cmd("set verbose 1") - self.dut_testpmd.execute_cmd("start") - self.dut_testpmd.wait_link_status_up(self.dut_ports[0]) - qnum = self.send_verify_fd(flowtype, keywords, "word_opt") - self.verify(qnum == 0, "Receive packet from wrong queue!!!") - self.raw_packet_generate(flowtype) - queue = random.randint(1, self.PF_QUEUE - 1) - self.dut_testpmd.execute_cmd( - "flow_director_filter 0 mode raw add flow %d fwd queue %d \ - fd_id 1 packet /tmp/test_gtp.raw" - % (flowtype, queue) - ) - qnum = self.send_verify_fd(flowtype, keywords, "word_opt") - qdef = qnum - self.verify(qnum == queue, "Receive packet from wrong queue!!!") - for word, chk in zip(keywords, qchecks): - qnum = self.send_verify_fd(flowtype, word, "chg_sufword_opt") - if qnum == qdef: - result = "sameq" - elif qnum == 0: - result = "difq" - self.verify( - result == chk, - "Faild to verify flow director when \ - key word change!!!", - ) - def run_gtp_test(self, crlwords, flowtype, pctype, qmin, qmax, keyword): """ Use dynamic flowtype/pctype mapping, queue region, dynamic change @@ -523,88 +467,6 @@ class TestDdpGtpQregion(TestCase): crlwords = list(range(21, 29)) self.run_gtp_test(crlwords, 23, 23, 10, 25, "dst_ipv6") - def test_fd_gtpu_ipv4(self): - """ - GTP is supported by NVM with profile updated. Download profile then - set queue region/flowtype/pctype mapping, default flow director input - set configuration is teid, setup raw flow type filter for flow - director check flow director could work when sending matched teid - packets to configured queue, otherwise direct packets to queue 0. - """ - crlwords = None - keywords = ["src_ip", "dst_ip", "sport", "dport", "teid"] - qchecks = ["sameq", "sameq", "sameq", "sameq", "difq"] - self.run_fd_test(crlwords, 26, 22, keywords, qchecks) - - def test_fd_gtpu_ipv4_dstip(self): - """ - GTP is supported by NVM with profile updated. Download profile then - set queue region/flowtype/pctype mapping, dynamic to change flow - director input set configuration for dst IPv4 words 27~28, setup - raw flow type filter for flow director, check flow director could - work when sending matched dst IPv4 packets to configured queue, - otherwise direct packets to queue 0. - """ - crlwords = list(range(27, 29)) - keywords = ["src_ip", "sport", "dport", "dst_ip"] - qchecks = ["sameq", "sameq", "sameq", "difq"] - self.run_fd_test(crlwords, 26, 22, keywords, qchecks) - - def test_fd_gtpu_ipv4_srcip(self): - """ - GTP is supported by NVM with profile updated. Download profile then - set queue region/flowtype/pctype mapping, dynamic to change flow - director input set configuration for src IPv4 words 15~16, setup - raw flow type filter for flow director, check flow director could - work when sending matched src IPv4 packets to configured queue, - otherwise direct packets to queue 0. - """ - crlwords = list(range(15, 17)) - keywords = ["dst_ip", "sport", "dport", "src_ip"] - qchecks = ["sameq", "sameq", "sameq", "difq"] - self.run_fd_test(crlwords, 26, 22, keywords, qchecks) - - def test_fd_gtpu_ipv6(self): - """ - GTP is supported by NVM with profile updated. Download profile then - set queue region/flowtype/pctype mapping, default flow director input - set configuration is teid, setup raw flow type filter for flow - director check flow director could work when sending matched teid - packets to configured queue, otherwise direct packets to queue 0. - """ - crlwords = None - keywords = ["src_ipv6", "dst_ipv6", "sport", "dport", "teid"] - qchecks = ["sameq", "sameq", "sameq", "sameq", "difq"] - self.run_fd_test(crlwords, 23, 23, keywords, qchecks) - - def test_fd_gtpu_ipv6_dstipv6(self): - """ - GTP is supported by NVM with profile updated. Download profile then - set queue region/flowtype/pctype mapping, dynamic to change flow - director input set configuration for dst IPv6 words 21~28, setup - raw flow type filter for flow director, check flow director could - work when sending matched dst IPv6 packets to configured queue, - otherwise direct packets to queue 0. - """ - crlwords = list(range(21, 29)) - keywords = ["src_ipv6", "sport", "dport", "teid", "dst_ipv6"] - qchecks = ["sameq", "sameq", "sameq", "sameq", "difq"] - self.run_fd_test(crlwords, 23, 23, keywords, qchecks) - - def test_fd_gtpu_ipv6_srcipv6(self): - """ - GTP is supported by NVM with profile updated. Download profile then - set queue region/flowtype/pctype mapping, dynamic to change flow - director input set configuration for src IPv6 words 13~20, setup - raw flow type filter for flow director, check flow director could - work when sending matched src IPv6 packets to configured queue, - otherwise direct packets to queue 0. - """ - crlwords = list(range(13, 21)) - keywords = ["dst_ipv6", "sport", "dport", "teid", "src_ipv6"] - qchecks = ["sameq", "sameq", "sameq", "sameq", "difq"] - self.run_fd_test(crlwords, 23, 23, keywords, qchecks) - def test_outer_64pre_dst_contrl_gtpcq(self): """ GTP is supported by NVM with profile updated. Download profile then -- 2.17.1