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 4FF8FA0613 for ; Fri, 27 Sep 2019 09:51:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 392FA2C36; Fri, 27 Sep 2019 09:51:01 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 170FB2C30 for ; Fri, 27 Sep 2019 09:50:58 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Sep 2019 00:50:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,554,1559545200"; d="scan'208";a="219689406" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 27 Sep 2019 00:50:57 -0700 From: Peng Yuan To: dts@dpdk.org Cc: Peng Yuan Date: Fri, 27 Sep 2019 15:55:25 +0800 Message-Id: <1569570925-140385-1-git-send-email-yuan.peng@intel.com> X-Mailer: git-send-email 1.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH]test_plans: add 3 cases to qos_sched_test_plan.rst 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" Add 3 cases for Hqos new features to qos_sched_test_plan.rst Signed-off-by: Peng Yuan diff --git a/test_plans/qos_sched_test_plan.rst b/test_plans/qos_sched_test_plan.rst index b8bc966..8675406 100644 --- a/test_plans/qos_sched_test_plan.rst +++ b/test_plans/qos_sched_test_plan.rst @@ -588,3 +588,104 @@ for each of the RX, WT and TX thread are also supported, providing flexibility to balance the work. The EAL coremask/corelist is constrained to contain the default mastercore 1 and the RX, WT and TX cores only. + +Test Case: Two Subports, different pipe profiles, different number of pipes I +============================================================================= +1. Configure the profile.cfg file with two subports, two different pipe + profiles and different number of pipes:: + + [subport 0] + number of pipes per subport = 2048 + pipe 0-2047 = 0 ; These pipes are configured with pipe profile 0 + [subport 1] + number of pipes per subport = 512 + pipe 0-511 = 1 ; These pipes are configured with pipe profile 1 + + [pipe profile 0] + tb rate = 305175 ; Bytes per second + tb size = 1000000 ; Bytes + tc 0 rate = 305175 ; Bytes per second + tc 1 rate = 305175 ; Bytes per second + ...... + + [pipe profile 1] + tb rate = 1220700 ; Bytes per second + tb size = 1000000 ; Bytes + + tc 0 rate = 1220700 ; Bytes per second + tc 1 rate = 1220700 ; Bytes per second + ...... + +2. This example uses a single packet flow configuration + which creates one RX thread on lcore 5 reading from port 0 + and a worker thread on lcore 7 writing to port 1:: + + ./qos_sched -l 1,2,5,7 -n 4 -- -i --pfc "0,1,2,5,7" --cfg ../profile.cfg + +3. The generator settings: + Set IP dst address mode is random, and the mask is "255.255.255.0". + Frame size=70bytes. + Flow1: outer vlan id=0 inner vlan random mask 0XXXXXXXXXXX (2048 pipes) + Flow2: outer vlan id=1 inner vlan random mask 000XXXXXXXXX (512 pipes) + Each flow 50% max rate. + +4. Check the result: + Only send flow1, the received packets by ixia port 1: 6.967mpps. + Only send flow2, the received packets by ixia port 1: 6.967mpps. + Send two flows at the same time, the received packets by ixia port 1: 13.888 mpps. + +Test Case: Two Subports, different pipe profiles, different number of pipes II +============================================================================== +1. Configure the profile.cfg file the same with last case I. + +2. This example uses a single packet flow configuration + which creates one RX thread on lcore 5 reading from port 0 + and a worker thread on lcore 7 writing to port 1:: + + ./qos_sched -l 1,2,5,7 -n 4 -- -i --pfc "0,1,2,5,7" --cfg ../profile.cfg + +3. The generator settings: + Set IP dst address mode is random, and the mask is "255.255.255.0". + Frame size=70bytes. + Flow1: outer vlan id=0 inner vlan random mask 0XXXXXXXXXXX (2048 pipes) + Flow2: outer vlan id=1 inner vlan random mask 0000XXXXXXXX (256 pipes) + Each flow 50% max rate. + +4. Check the result: + Only send flow1, the received packets by ixia port 1: 6.967mpps. + Only send flow2, the received packets by ixia port 1: 3.838mpps. + Send two flows at the same time, the received packets by ixia port 1: 10.805mpps. + +Test Case: Redistribution of unused pipe BW to other pipes within the same subport +================================================================================== +1. Use default profile_ov.cfg, Set:: + + CONFIG_RTE_SCHED_SUBPORT_TC_OV=y + +2. This example uses a single packet flow configuration + which creates one RX thread on lcore 5 reading from port 0 + and a worker thread on lcore 7 writing to port 1:: + + ./qos_sched -l 1,2,5,7 -n 4 -- -i --pfc "0,1,2,5,7" --cfg ../profile.cfg + +3. The generator settings: + Configure 4 flows: + Frame size=70bytes. + Outer vlan ID = 0 + Flow 1: Inner vlan ID = 0 + Flow 2: Inner vlan ID = 1 + Flow 3: Inner vlan ID = 2 + Flow 4: Inner vlan ID = 3 + IP dst address = 100.0.0.12 + Each flow’s Max rate = 25% + Send four flows at the same time, the TX rate by ixia port0 is 13.888mpps, + the received packets by ixia port1: 0.092mpps. + +4. Disable the first flow, the TX rate by ixia port0 is 10.416mpps, + the received packets by ixia port1 is still 0.092mpps. + +5. Configure only one flow with max rate = 100% + Set inner vlan ID count mode "increment", repeat count=32, step=1. + Send the flow, the receive rate is 0.092mpps. + Then set inner vlan ID count mode "increment", repeat count=16, step=1. + Send the flow, the receive rate is still 0.092mpps. -- 2.7.4