From patchwork Fri Jul 24 15:20:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lu, Nannan" X-Patchwork-Id: 74733 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id F1F37A0518; Fri, 24 Jul 2020 08:28:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C584E1BF91; Fri, 24 Jul 2020 08:28:12 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 37E581BF7B for ; Fri, 24 Jul 2020 08:28:11 +0200 (CEST) IronPort-SDR: M7NL07obUt52o7F5VZ2eLlMaQWnlYfcuwnO4T/cuy2s8eQSLRjd+4vethp0u2lbaT5dw9pKrYj fcSRKaU3ujuA== X-IronPort-AV: E=McAfee;i="6000,8403,9691"; a="138164140" X-IronPort-AV: E=Sophos;i="5.75,389,1589266800"; d="scan'208";a="138164140" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2020 23:28:09 -0700 IronPort-SDR: +B/PC1kwLbMlUPke7XmeOyxTykJuz08dmSFGmqRF+4K6ORO92RBBbMg7zmxZA0jO9fjUhu6cwQ k/1RSmEj+2ZQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,389,1589266800"; d="scan'208";a="432986068" Received: from dpdk-lunannan.sh.intel.com ([10.67.111.68]) by orsmga004.jf.intel.com with ESMTP; 23 Jul 2020 23:28:07 -0700 From: Nannan Lu To: dts@dpdk.org Cc: Nannan Lu Date: Fri, 24 Jul 2020 15:20:45 +0000 Message-Id: <1595604045-346279-1-git-send-email-nannan.lu@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V1] tests/TestSuite_cvl_dcf_switch_filter.py: Remove actions vf id 0 test case X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" Remove actions vf id 0 test case to align the test plan. Signed-off-by: Nannan Lu --- tests/TestSuite_cvl_dcf_switch_filter.py | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/tests/TestSuite_cvl_dcf_switch_filter.py b/tests/TestSuite_cvl_dcf_switch_filter.py index 1a51d40..afb6a28 100644 --- a/tests/TestSuite_cvl_dcf_switch_filter.py +++ b/tests/TestSuite_cvl_dcf_switch_filter.py @@ -676,17 +676,6 @@ tv_mac_ipv6_nat_t_esp = { "expect_results":{"expect_pkts":0}} } -tv_actions_vf_id_0 = { - "name":"tv_actions_vf_id_0", - "rte_flow_pattern":"flow create 0 ingress pattern eth dst is 68:05:ca:8d:ed:a8 / ipv4 src is 192.168.0.1 dst is 192.168.0.2 tos is 4 ttl is 3 / tcp src is 25 dst is 23 / end actions vf id 0 / end", - "matched":{"scapy_str":['Ether(dst="68:05:ca:8d:ed:a8")/IP(src="192.168.0.1",dst="192.168.0.2",tos=4,ttl=3)/TCP(sport=25,dport=23)/("X"*480)'], - "check_func":{"func":rfc.check_vf_rx_packets_number, - "param":{"expect_port":0, "expect_queues":"null"}}, - "expect_results":{"expect_pkts":0}}, - "mismatched":{} -} - - tv_add_existing_rules_but_with_different_vfs = { "name":"tv_add_existing_rules_but_with_different_vfs", "rte_flow_pattern":["flow create 0 ingress pattern eth dst is 68:05:ca:8d:ed:a8 / ipv4 src is 192.168.0.1 dst is 192.168.0.2 tos is 4 ttl is 3 / udp src is 25 dst is 23 / end actions vf id 1 / end", @@ -1310,22 +1299,6 @@ class SwitchFilterTest(TestCase): self.setup_1pf_vfs_env() self._rte_flow_validate_pattern(tv_mac_ipv6_nat_t_esp) - def test_actions_vf_id_0(self): - #set up 4 vfs on 1 pf environment - self.setup_1pf_vfs_env() - #launch testpmd - command = self.create_testpmd_command() - out = self.dut.send_expect(command, "testpmd> ", 15) - self.testpmd_status = "running" - self.dut.send_expect("set fwd rxonly", "testpmd> ", 15) - self.dut.send_expect("set verbose 1", "testpmd> ", 15) - #create a rule - rule_list = self.create_switch_filter_rule(tv_actions_vf_id_0["rte_flow_pattern"]) #create a rule - self.check_switch_filter_rule_list(0, rule_list) - #send matched packets and check - matched_dic = tv_actions_vf_id_0["matched"] - self.send_and_check_packets(matched_dic) - def test_cannot_create_rule_on_vf_1(self): #set up 4 vfs on 1 pf environment self.setup_1pf_vfs_env()