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 AB0D7A0C41; Thu, 18 Nov 2021 03:34:39 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A3FE640E78; Thu, 18 Nov 2021 03:34:39 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 7EEDB40395 for ; Thu, 18 Nov 2021 03:34:37 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10171"; a="294911704" X-IronPort-AV: E=Sophos;i="5.87,243,1631602800"; d="scan'208";a="294911704" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2021 18:34:36 -0800 X-IronPort-AV: E=Sophos;i="5.87,243,1631602800"; d="scan'208";a="646255471" Received: from unknown (HELO dpdk.lan) ([10.240.183.77]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2021 18:34:35 -0800 From: Yan Xia To: dts@dpdk.org Cc: Yan Xia Subject: [dts][PATCH V2 2/4] tests/ipgre: delete GRE_packet_filter Date: Thu, 18 Nov 2021 10:35:36 +0000 Message-Id: <20211118103538.117758-3-yanx.xia@intel.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211118103538.117758-1-yanx.xia@intel.com> References: <20211118103538.117758-1-yanx.xia@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 delete test case that legcay command not be supported and not new command to replace dpdk commit-id:251baec36 ethdev: remove legacy tunnel filter type support Signed-off-by: Yan Xia --- tests/TestSuite_ipgre.py | 55 ---------------------------------------- 1 file changed, 55 deletions(-) diff --git a/tests/TestSuite_ipgre.py b/tests/TestSuite_ipgre.py index 2a15e07a..da5b7025 100644 --- a/tests/TestSuite_ipgre.py +++ b/tests/TestSuite_ipgre.py @@ -300,61 +300,6 @@ class TestIpgre(TestCase): self.check_packet_transmission(pkt_types_ipv6_ipv6_SCTP, config_layers) self.dut.send_expect("quit", "#") - def test_GRE_packet_filter(self): - """ - Start testpmd with multi queues, add GRE filter that forward - inner/outer ip address 0.0.0.0 to queue 3, Send packet inner - ip address matched and check packet received by queue 3 - """ - outer_mac = self.tester_iface_mac - inner_mac = "10:00:00:00:00:00" - - # Start testpmd with multi queues - #testpmd_cmd = "./%s/app/testpmd -c ff -n 3 -- -i --rxq=4 --txq=4" % self.target - self.pmdout.start_testpmd("Default", "--portmask=%s " % - (self.portMask) + " --enable-rx-cksum --rxq=4 --txq=4 " - , socket=self.ports_socket) - self.dut.send_expect("set fwd rxonly", "testpmd>") - self.dut.send_expect("set nbcore 4", "testpmd>") - self.dut.send_expect("set verbose 1", "testpmd>") - self.dut.send_expect("start", "testpmd>") - - # Add GRE filter that forward inner ip address 0.0.0.0 to queue 3 - cmd = "tunnel_filter add 0 %s %s 0.0.0.0 1 ipingre iip 0 3"%(outer_mac, inner_mac) - self.dut.send_expect( cmd, "testpmd>") - - # Send packet inner ip address matched and check packet received by queue 3 - pkt_types = {"MAC_IP_GRE_IPv4-TUNNEL_UDP_PKT": ["TUNNEL_GRENAT", "INNER_L4_UDP"]} - config_layers = {'ether': {'src': self.outer_mac_src}, - 'ipv4': {'proto': 'gre', - 'src': self.outer_ip_src, - 'dst': self.outer_ip_dst}, - 'inner_ipv4':{'dst': "0.0.0.0"}} - self.check_packet_transmission(pkt_types, config_layers, "3", 1) - - # Remove tunnel filter and check same packet received by queue 0 - cmd = "tunnel_filter rm 0 %s %s 0.0.0.0 1 ipingre iip 0 3"%(outer_mac, inner_mac) - self.dut.send_expect( cmd, "testpmd>") - self.check_packet_transmission(pkt_types, config_layers, "3") - - # Add GRE filter that forward outer ip address 0.0.0.0 to queue 3 - cmd = "tunnel_filter add 0 %s %s 0.0.0.0 1 ipingre oip 0 3"%(outer_mac, inner_mac) - self.dut.send_expect( cmd, "testpmd>") - - # Send packet outer ip address matched and check packet received by queue 3. - pkt_types = {"MAC_IP_GRE_IPv4-TUNNEL_UDP_PKT": ["TUNNEL_GRENAT", "INNER_L4_UDP"]} - config_layers = {'ether': {'src': self.outer_mac_src}, - 'ipv4': {'dst': "0.0.0.0", 'proto': 'gre'}} - self.check_packet_transmission(pkt_types, config_layers, "3", 1) - - # Add GRE filter that forward outer ip address 0.0.0.0 to queue 3 - cmd = "tunnel_filter rm 0 %s %s 0.0.0.0 1 ipingre oip 0 3"%(outer_mac, inner_mac) - self.dut.send_expect( cmd, "testpmd>") - self.check_packet_transmission(pkt_types, config_layers, "3") - - time.sleep(2) - self.dut.send_expect("quit", "#") - def test_GRE_packet_chksum_offload(self): """ Start testpmd with hardware checksum offload enabled, -- 2.33.1