From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B0F31A04DD; Fri, 20 Nov 2020 03:10:27 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A6FF1C884; Fri, 20 Nov 2020 03:10:26 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 67304C8C6 for ; Fri, 20 Nov 2020 03:10:25 +0100 (CET) IronPort-SDR: ERicLlcoFt/HZ5gFWZlXyjf6IFUuZYv2KEHgI+5TWJJlhlWNGMDoGZ8xGC5y/hqSRckP2LpInw XgmCH3qGfDmQ== X-IronPort-AV: E=McAfee;i="6000,8403,9810"; a="170618893" X-IronPort-AV: E=Sophos;i="5.78,354,1599548400"; d="scan'208";a="170618893" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2020 18:10:25 -0800 IronPort-SDR: 0jasKwcDo9T+IoF2xAH1O+qwWLAMeuGXuEG/bHqNaD1J7mjrAXxkqP9AFIAGV/UgtfLR243OLw /jdBZ3rk6oYg== X-IronPort-AV: E=Sophos;i="5.78,354,1599548400"; d="scan'208";a="535003907" Received: from unknown (HELO localhost.localdomain) ([10.240.183.105]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2020 18:10:23 -0800 From: sunqin To: dts@dpdk.org Cc: sunqin Date: Fri, 20 Nov 2020 10:45:53 +0000 Message-Id: <20201120104556.27730-4-qinx.sun@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201120104556.27730-1-qinx.sun@intel.com> References: <20201120104556.27730-1-qinx.sun@intel.com> Subject: [dts] [PATCH V1 3/6] tests/cvl_fdir remove 1 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 1 case: test_add_delete_rules The case has been moved to 'cvl_limit_value_test' suite Signed-off-by: sunqin --- tests/TestSuite_cvl_fdir.py | 39 ------------------------------------- 1 file changed, 39 deletions(-) diff --git a/tests/TestSuite_cvl_fdir.py b/tests/TestSuite_cvl_fdir.py index 50a0236c..31bdfc7d 100644 --- a/tests/TestSuite_cvl_fdir.py +++ b/tests/TestSuite_cvl_fdir.py @@ -3018,45 +3018,6 @@ class TestCVLFdir(TestCase): out3 = self.send_pkts_getouput(pkts='Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.22",dst="192.168.0.23") / Raw("x" * 80)', port_id=0, count=1) rfc.check_mark(out3, pkt_num=1, check_param={"port_id": 0, "queue": 2, "mark_id": 1}, stats=True) - def test_add_delete_rules(self): - self.pmd_output.execute_cmd("stop") - self.dut.send_command("quit", timeout=2) - cmd_path = '/tmp/add_delete_rules' - cmds = [ - 'flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / udp src is 22 dst is 23 / end actions queue index 1 / mark / end', - 'flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / tcp src is 22 dst is 23 / end actions rss queues 2 3 end / mark id 1 / end', - 'flow list 0', 'flow flush 0'] * 15360 - cmds_li = map(lambda x: x + os.linesep, cmds) - with open(cmd_path, 'w') as f: - f.writelines(cmds_li) - self.dut.session.copy_file_to(cmd_path, cmd_path) - try: - eal_param = self.dut.create_eal_parameters(cores="1S/4C/1T", ports=[self.pci0, self.pci1], socket=self.ports_socket) - param = " --log-level='ice,7' -- -i --portmask=%s --rxq=%d --txq=%d --port-topology=loop --cmdline-file=%s" % ( - self.portMask, 64, 64, cmd_path) - command_line = self.dut.apps_name['test-pmd'] + eal_param + param - out = self.dut.send_expect(command_line, 'testpmd>', timeout=600) - self.verify('Failed to create file' not in out, "create some rule failed: %s" % out) - self.config_testpmd() - self.pmd_output.execute_cmd('start') - rules = [ - 'flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / udp src is 22 dst is 23 / end actions queue index 1 / mark / end', - 'flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / tcp src is 22 dst is 23 / end actions rss queues 2 3 end / mark id 1 / end'] - rule_li = self.create_fdir_rule(rule=rules, check_stats=True) - self.check_fdir_rule(port_id=0, stats=True, rule_list=rule_li) - pkts = [ - 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21")/UDP(sport=22,dport=23)/Raw("x" * 80)', - 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21")/TCP(sport=22,dport=23)/Raw("x" * 80)'] - out1 = self.send_pkts_getouput(pkts=pkts[0], port_id=0, count=1) - rfc.check_mark(out1, pkt_num=1, check_param={"port_id": 0, "queue": 1, "mark_id": 0}, stats=True) - out2 = self.send_pkts_getouput(pkts=pkts[1], port_id=0, count=1) - rfc.check_mark(out2, pkt_num=1, check_param={"port_id": 0, "queue": [2, 3], "mark_id": 1}, stats=True) - except Exception as e: - raise Exception(e) - finally: - self.dut.kill_all() - self.launch_testpmd_with_mark() - def test_delete_rules(self): rules = [ 'flow create 0 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 1 / mark / end', -- 2.17.1