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 7D409A0C4E; Wed, 4 Aug 2021 08:52:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3528641216; Wed, 4 Aug 2021 08:52:15 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 379AD40696 for ; Wed, 4 Aug 2021 08:52:13 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10065"; a="299451060" X-IronPort-AV: E=Sophos;i="5.84,293,1620716400"; d="scan'208";a="299451060" 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:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,293,1620716400"; d="scan'208";a="479985073" 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:08 -0700 From: Lijuan Tu To: dts@dpdk.org Cc: Lijuan Tu Date: Wed, 4 Aug 2021 22:41:54 +0800 Message-Id: <1628088115-756-5-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, 4/5] vxlan_sample: 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/vxlan_sample_test_plan.rst | 30 --------- tests/TestSuite_vxlan_sample.py | 111 +--------------------------------- 2 files changed, 1 insertion(+), 140 deletions(-) diff --git a/test_plans/vxlan_sample_test_plan.rst b/test_plans/vxlan_sample_test_plan.rst index a092e85..9681d05 100644 --- a/test_plans/vxlan_sample_test_plan.rst +++ b/test_plans/vxlan_sample_test_plan.rst @@ -234,33 +234,3 @@ Verify that packet received by virtIO port0 and forwarded by virtIO port1:: Verify that four separated vxlan packets received on PF devices. Make sure tcp packet payload is 256, 256, 256 and 124. - -Test Case: Vxlan Sample Performance Benchmarking -================================================ -The throughput is measured for different operations taken by vxlan sample. -Virtio single mean there's only one flow and forwarded by single port in vm. -Virtio two mean there are two flows and forwarded by both two ports in vm. - -+----------------+-----------+-------+------------+ -| Function | VirtIO | Mpps | % linerate | -+================+===========+=======+============+ -| Decap | Single | | | -+----------------+-----------+-------+------------+ -| Encap | Single | | | -+----------------+-----------+-------+------------+ -| Decap&Encap | Single | | | -+----------------+-----------+-------+------------+ -| Checksum | Single | | | -+----------------+-----------+-------+------------+ -| Checksum&Decap | Single | | | -+----------------+-----------+-------+------------+ -| Decap | Two Ports | | | -+----------------+-----------+-------+------------+ -| Encap | Two Ports | | | -+----------------+-----------+-------+------------+ -| Decap&Encap | Two Ports | | | -+----------------+-----------+-------+------------+ -| Checksum | Two Ports | | | -+----------------+-----------+-------+------------+ -| Checksum&Decap | Two Ports | | | -+----------------+-----------+-------+------------+ diff --git a/tests/TestSuite_vxlan_sample.py b/tests/TestSuite_vxlan_sample.py index 92253bb..109196f 100644 --- a/tests/TestSuite_vxlan_sample.py +++ b/tests/TestSuite_vxlan_sample.py @@ -176,10 +176,7 @@ class TestVxlanSample(TestCase): if self.running_case == "test_vxlan_sample_tso": tep_cmd += " --tso-segsz=%d" % self.def_mss - if self.running_case != "test_perf_vxlan_sample": - self.prepare_vxlan_sample_env(tep_cmd, vm_num=vm_num) - - pass + self.prepare_vxlan_sample_env(tep_cmd, vm_num=vm_num) def prepare_vxlan_sample_env(self, tep_cmd, vm_num=1): # remove unexpected socket @@ -491,112 +488,6 @@ class TestVxlanSample(TestCase): self.logger.info("Vxlan packet tso pass on virtIO port %d" % vf_id) - def test_perf_vxlan_sample(self): - # vxlan payload length for performance test - # inner packet not contain crc, should need add four - vxlan_payload = PACKET_LEN - HEADER_SIZE['eth'] - \ - HEADER_SIZE['ip'] - HEADER_SIZE['udp'] - \ - HEADER_SIZE['vxlan'] - HEADER_SIZE['eth'] - \ - HEADER_SIZE['ip'] - HEADER_SIZE['udp'] + 4 - - vxlansample_header = ['Type', 'Queue', 'Mpps', '% linerate'] - self.result_table_create(vxlansample_header) - for perf_cfg in self.perf_cfg: - func = perf_cfg['Func'] - if func is 'Decap': - encap = self.FEAT_DISABLE - decap = self.FEAT_ENABLE - chksum = self.FEAT_DISABLE - elif func is 'Encap': - encap = self.FEAT_ENABLE - decap = self.FEAT_DISABLE - chksum = self.FEAT_DISABLE - elif func is 'Decap&Encap': - encap = self.FEAT_ENABLE - decap = self.FEAT_ENABLE - chksum = self.FEAT_DISABLE - elif func is 'Checksum': - encap = self.FEAT_ENABLE - decap = self.FEAT_DISABLE - chksum = self.FEAT_ENABLE - elif func is 'Checksum&Decap': - encap = self.FEAT_ENABLE - decap = self.FEAT_ENABLE - chksum = self.FEAT_ENABLE - - tep_cmd_temp = self.app_tep_termination_path + " -c %(COREMASK)s -n %(CHANNELS)d " \ - + "--socket-mem 2048,2048 -- -p 0x1 --udp-port " \ - + "%(VXLAN_PORT)d --nb-devices %(NB_DEVS)d --filter-type " \ - + "%(FILTERS)d --tx-checksum %(TX_CHKS)d --encap %(ENCAP)d " \ - + "--decap %(DECAP)d --rx-retry 1 --rx-retry-num 4 " \ - + "--rx-retry-delay 15" - - tep_cmd = tep_cmd_temp % { - 'COREMASK': self.coremask, - 'CHANNELS': self.dut.get_memory_channels(), - 'VXLAN_PORT': self.vxlan_port, 'NB_DEVS': 2, - 'FILTERS': self.OUTER_INNER_VNI, 'TX_CHKS': chksum, - 'ENCAP': encap, 'DECAP': decap} - - self.prepare_vxlan_sample_env(tep_cmd, vm_num=1) - self.vm_testpmd_start(vm_id=0) - - # create vxlan packet pf mac + vni=1000 + inner virtIO port0 mac - params = {} - params['outer_mac_dst'] = self.pf_mac - params['vni'] = 1000 - mac_incr = 0 - params['inner_mac_dst'] = self.mac_address_add(mac_incr) - params['payload_size'] = vxlan_payload - params['pcap_file'] = 'vxlan_sample.pcap' - - # create vxlan pcap file and transfer it to tester - vxlan_pkt = VxlanTestConfig(self, **params) - vxlan_pkt.create_pcap() - - if perf_cfg['VirtIO'] == "Two Ports": - # create vxlan packet pf mac + vni=1000 + inner virtIO port0 - # mac - params['outer_mac_dst'] = self.pf_mac - params['vni'] = 1000 - mac_incr = 1 - params['inner_mac_dst'] = self.mac_address_add(mac_incr) - params['pcap_file'] = 'vxlan_sample_1.pcap' - - # create vxlan pcap file and transfer it to tester - vxlan_pkt = VxlanTestConfig(self, **params) - vxlan_pkt.create_pcap(scp=False) - - self.combine_pcap("vxlan_sample.pcap", "vxlan_sample_1.pcap") - - self.tester.session.copy_file_to("vxlan_sample.pcap") - - # config the flows - tgen_input = [] - tgen_input.append((self.tester.get_local_port(self.pf), - self.tester.get_local_port(self.pf), - "vxlan_sample.pcap")) - - # run traffic generator - _, pps = self.tester.traffic_generator_throughput(tgen_input) - - self.vm_dut.send_expect("stop", "testpmd>") - self.vm_dut.send_expect("quit", "# ") - - pps /= 1000000.0 - perf_cfg['Mpps'] = pps - wirespeed = self.wirespeed(self.nic, PACKET_LEN, 1) - perf_cfg['pct'] = pps * 100 / wirespeed - - table_row = [perf_cfg['Func'], perf_cfg['VirtIO'], - perf_cfg['Mpps'], perf_cfg['pct']] - - self.result_table_add(table_row) - - self.tear_down() - - self.result_table_print() - def combine_pcap(self, dest_pcap, src_pcap): pkts = rdpcap(dest_pcap) if len(pkts) != 1: -- 1.8.3.1