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 A6DF0A0C50; Wed, 4 Aug 2021 08:52:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8C1594014F; Wed, 4 Aug 2021 08:52:16 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 019554120E for ; Wed, 4 Aug 2021 08:52:13 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10065"; a="299451055" X-IronPort-AV: E=Sophos;i="5.84,293,1620716400"; d="scan'208";a="299451055" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2021 23:52:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,293,1620716400"; d="scan'208";a="479985057" Received: from unknown (HELO dpdk-lijuan.sh.intel.com) ([10.67.119.192]) by fmsmga008.fm.intel.com with ESMTP; 03 Aug 2021 23:52:04 -0700 From: Lijuan Tu To: dts@dpdk.org Cc: Lijuan Tu Date: Wed, 4 Aug 2021 22:41:51 +0800 Message-Id: <1628088115-756-2-git-send-email-lijuan.tu@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1628088115-756-1-git-send-email-lijuan.tu@intel.com> References: <1628088115-756-1-git-send-email-lijuan.tu@intel.com> Subject: [dts] [v2, 1/5] generic_filter: remove perf test case 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 Sender: "dts" the case is no longer maintained. Signed-off-by: Lijuan Tu --- 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