From: Lijuan Tu <lijuan.tu@intel.com>
To: dts@dpdk.org
Cc: Lijuan Tu <lijuan.tu@intel.com>
Subject: [dts] [v1, 1/5] generic_filter: remove perf test case
Date: Wed, 4 Aug 2021 06:49:22 +0800 [thread overview]
Message-ID: <1628030966-187545-1-git-send-email-lijuan.tu@intel.com> (raw)
the case is no longer maintained.
Signed-off-by: Lijuan Tu <lijuan.tu@intel.com>
---
test_plans/generic_filter_test_plan.rst | 107 --------------------------------
tests/TestSuite_generic_filter.py | 75 ----------------------
2 files changed, 182 deletions(-)
diff --git a/test_plans/generic_filter_test_plan.rst b/test_plans/generic_filter_test_plan.rst
index de02f62..fda54e0 100644
--- a/test_plans/generic_filter_test_plan.rst
+++ b/test_plans/generic_filter_test_plan.rst
@@ -522,110 +522,3 @@ Send packets(`dst_ip` = 2.2.2.5 `src_ip` = 2.2.2.4 `dst_port` = 1 `src_port` =
sending packets. packets are received on the queue 64 and queue 127 When
setting 5-tuple Filter with queue(128), it will display failure because the
number of queues no more than 128.
-
-
-
-Test Case 11: 10G NIC Performance
-=================================
-
-This case is designed for Niantic. It provides the performance data with and
-without generic filter::
-
- Launch app without filter
- ./testpmd -c fffff -n 4 -- -i --disable-rss --rxq=4 --txq=4 --nb-cores=16 --nb-ports=2
- testpmd> start
-
-Send the packets stream from packet generator::
-
- testpmd> quit
-
-Enable the filters on app::
-
- ./testpmd -c fffff -n 4 -- -i --disable-rss --rxq=4 --txq=4 --nb-cores=16 --nb-ports=2
-
- testpmd>set stat_qmap rx 0 0 0
- testpmd>set stat_qmap rx 0 1 1
- testpmd>set stat_qmap rx 0 2 2
- testpmd>set stat_qmap rx 0 3 3
- testpmd>set flush_rx on
- testpmd> add_syn_filter 0 priority high queue 1
- testpmd> add_ethertype_filter 0 ethertype 0x0806 priority disable 0 queue 2 index 1
- testpmd> add_5tuple_filter 0 dst_ip 2.2.2.5 src_ip 2.2.2.4 dst_port 1 src_port 1 protocol 0x06 mask 0x1f flags 0x02 priority 3 queue 3 index 1
- testpmd> start
-
-Send the packets stream from packet generator::
-
- testpmd> quit
-
-
-+-------+---------+---------+
-| Frame | disable | enable |
-| Size | filter | filter |
-+-------+---------+---------+
-| 64 | | |
-+-------+---------+---------+
-| 128 | | |
-+-------+---------+---------+
-| 256 | | |
-+-------+---------+---------+
-| 512 | | |
-+-------+---------+---------+
-| 1024 | | |
-+-------+---------+---------+
-| 1280 | | |
-+-------+---------+---------+
-| 1518 | | |
-+-------+---------+---------+
-
-
-Test Case 12: 1G NIC Performance
-================================
-
-This case is designed for NIC (I350, 82580, and 82576). It provides the
-performance data with and without generic filter::
-
- ./testpmd -c fffff -n 4 -- -i --disable-rss --rxq=4 --txq=4 --nb-cores=16 --nb-ports=2
- testpmd> start
-
-Send the packets stream from packet generator::
-
- testpmd> quit
-
-Enable the filter::
-
- ./testpmd -c fffff -n 4 -- -i --disable-rss --rxq=4 --txq=4 --nb-cores=16 --nb-ports=2
-
- testpmd>set stat_qmap rx 0 0 0
- testpmd>set stat_qmap rx 0 1 1
- testpmd>set stat_qmap rx 0 2 2
- testpmd>set stat_qmap rx 0 3 3
- testpmd>set flush_rx on
- testpmd> add_syn_filter 0 priority high queue 1
- testpmd> add_ethertype_filter 0 ethertype 0x0806 priority disable 0 queue 2 index 1
- testpmd> start
-
-
-Send the packets stream from packet generator::
-
- testpmd> quit
-
-
-
-+-------+---------+---------+
-| Frame | disable | enable |
-| Size | filter | filter |
-+-------+---------+---------+
-| 64 | | |
-+-------+---------+---------+
-| 128 | | |
-+-------+---------+---------+
-| 256 | | |
-+-------+---------+---------+
-| 512 | | |
-+-------+---------+---------+
-| 1024 | | |
-+-------+---------+---------+
-| 1280 | | |
-+-------+---------+---------+
-| 1518 | | |
-+-------+---------+---------+
diff --git a/tests/TestSuite_generic_filter.py b/tests/TestSuite_generic_filter.py
index b34c9dd..22f85bd 100644
--- a/tests/TestSuite_generic_filter.py
+++ b/tests/TestSuite_generic_filter.py
@@ -773,81 +773,6 @@ class TestGeneric_filter(TestCase):
else:
self.verify(False, "%s not support this test" % self.nic)
- def test_perf_generic_filter_perf(self):
- self.pmdout.start_testpmd(
- "%s" % self.cores, "--disable-rss --rxq=4 --txq=4 --portmask=%s --nb-cores=4 --nb-ports=1" % portMask)
- self.port_config()
- print(valports[0], valports[1])
- tx_port = self.tester.get_local_port(valports[0])
- tx_mac = self.dut.get_mac_address(valports[0])
- txItf = self.tester.get_interface(tx_port)
-
- rx_port = self.tester.get_local_port(valports[1])
- rxItf = self.tester.get_interface(rx_port)
- package_sizes = [64, 128, 256, 512, 1024, 1280, 1518]
- print(tx_mac)
- print(self.dut.ports_info[valports[0]], self.dut.ports_info[valports[1]])
- test_type = {
- "syn": ["syn_filter add 0 priority high queue 1", "syn_filter del 0 priority high queue 1"],
- "ethertype": ["add_ethertype_filter 0 ethertype 0x0806 priority disable 0 queue 2 index 1", "remove_ethertype_filter 0 index 1"],
- "5tuple": ["5tuple_filter 0 add dst_ip 2.2.2.5 src_ip 2.2.2.4 dst_port 1 src_port 1 protocol 0x06 mask 0x1f tcp_flags 0x02 priority 3 queue 3", "5tuple_filter 0 add dst_ip 2.2.2.5 src_ip 2.2.2.4 dst_port 1 src_port 1 protocol 0x06 mask 0x1f tcp_flags 0x02 priority 3 queue 3"]
- }
- stream_config = {
- "syn": 'Ether(dst="%s")/IP(src="2.2.2.5",dst="2.2.2.4")/TCP(dport=80,flags="S")/("X"*64)',
- "ethertype": 'Ether(dst="%s")/ARP(pdst="192.168.1.1")' % tx_mac,
- "5tuple": 'flows.append(Ether(dst="%s")/IP(src="2.2.2.4",dst="2.2.2.5")/TCP(sport=1,dport=1,flags=0)/("X"*%d))',
- }
- self.result_table_create(
- ['pack_size', "filter_type", "enable", "disable", "perf_compare"])
- for key in list(test_type.keys()):
- if "5tuple" != key:
- pps_lists = []
- for i in range(2):
- self.dut.send_expect(test_type[key][i], "testpmd> ", 15)
- self.dut.send_expect("start", "testpmd> ", 120)
- self.tester.scapy_append('flows = []')
- self.tester.scapy_append(
- 'flows.append(%s)' % stream_config[key])
- self.tester.scapy_append(
- 'wrpcap("generic_firlter.pcap",flows)')
- self.tester.scapy_execute()
- tgen_input = []
- tgen_input.append(
- (tx_port, rx_port, "generic_firlter.pcap"))
- _, pps = self.tester.traffic_generator_throughput(
- tgen_input)
- pps_lists.append(pps)
- self.result_table_add(
- ["defult", key, pps_lists[0], pps_lists[1], (pps_lists[0] - pps_lists[1]) / float(pps_lists[1])])
- # this is a TCP/IP packet, need to test different payload_size
- if ("5tuple" == key) and ("niantic" == self.nic):
- for package_size in package_sizes:
- payload_size = package_size - \
- HEADER_SIZE["tcp"] - HEADER_SIZE[
- 'ip'] - HEADER_SIZE['eth']
- pps_lists = []
- for i in range(2):
- self.dut.send_expect(
- test_type[key][i], "testpmd> ", 15)
- self.dut.send_expect("start", "testpmd> ", 120)
- self.tester.scapy_append('flows = []')
- self.tester.scapy_append('flows.append(%s)' % (
- stream_config[key] % (tx_mac, payload_size)))
- self.tester.scapy_append(
- 'wrpcap("generic_firlter.pcap",flows)')
- self.tester.scapy_execute()
- tgen_input = []
- # tgen_input.append((txItf, rxItf, "generic_firlter.pcap"))
- tgen_input.append(
- (tx_port, rx_port, "generic_firlter.pcap"))
- print(tgen_input)
- _, pps = self.tester.traffic_generator_throughput(
- tgen_input)
- pps_lists.append(pps)
- self.result_table_add(
- [package_size, key, pps_lists[0], pps_lists[1], (pps_lists[0] - pps_lists[1]) / float(pps_lists[1])])
- self.result_table_print()
-
def tear_down(self):
"""
Run after each test case.
--
1.8.3.1
next reply other threads:[~2021-08-03 14:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-03 22:49 Lijuan Tu [this message]
2021-08-03 22:49 ` [dts] [v1, 2/5] nvgre: remove perf test cases Lijuan Tu
2021-08-03 22:49 ` [dts] [v1, 3/5] vm_power_manager: " Lijuan Tu
2021-08-03 22:49 ` [dts] [v1, 4/5] vxlan_sample: remove perf test case Lijuan Tu
2021-08-03 22:49 ` [dts] [v1, 5/5] remove cloud_filter as it is no longer maintained Lijuan Tu
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=1628030966-187545-1-git-send-email-lijuan.tu@intel.com \
--to=lijuan.tu@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).