From: sunqin <qinx.sun@intel.com>
To: dts@dpdk.org
Cc: sunqin <qinx.sun@intel.com>
Subject: [dts] [PATCH V1 3/6] tests/cvl_fdir remove 1 case
Date: Fri, 20 Nov 2020 10:45:53 +0000 [thread overview]
Message-ID: <20201120104556.27730-4-qinx.sun@intel.com> (raw)
In-Reply-To: <20201120104556.27730-1-qinx.sun@intel.com>
Remove 1 case:
test_add_delete_rules
The case has been moved to 'cvl_limit_value_test' suite
Signed-off-by: sunqin <qinx.sun@intel.com>
---
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
next prev parent reply other threads:[~2020-11-20 2:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-20 10:45 [dts] [PATCH V1 0/6] Remove 8 duplicate cases sunqin
2020-11-20 2:16 ` Sun, QinX
2020-11-20 10:45 ` [dts] [PATCH V1 1/6] tests/iavf_fdir remove 6 cases sunqin
2020-11-20 10:45 ` [dts] [PATCH V1 2/6] test_plans/iavf_fdir remove 6 subcases sunqin
2020-11-20 10:45 ` sunqin [this message]
2020-11-20 10:45 ` [dts] [PATCH V1 4/6] test_plans/cvl_fdir remove 1 subcase sunqin
2020-11-20 10:45 ` [dts] [PATCH V1 5/6] tests/cvl_dcf_switch_filter remove 1 case sunqin
2020-11-20 10:45 ` [dts] [PATCH V1 6/6] test_plans/cvl_dcf_switch_filter " sunqin
2020-11-23 3:14 ` [dts] [PATCH V1 0/6] Remove 8 duplicate cases Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201120104556.27730-4-qinx.sun@intel.com \
--to=qinx.sun@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).