From patchwork Tue Aug 1 18:19:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 129782 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E9CD942FB1; Tue, 1 Aug 2023 12:07:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B8E2440F16; Tue, 1 Aug 2023 12:07:23 +0200 (CEST) Received: from mgamail.intel.com (unknown [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 20D5340A89 for ; Tue, 1 Aug 2023 12:07:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690884442; x=1722420442; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ug/r75LQk+ShWrws4J9ld47nGkoqRZDHTzl0eiXG7So=; b=LKBzPVtDMPAlIDWq8ZGcLglRloVfS2w4W3njTRPaYEiYPomhk6dc8EOB oIfQVeL9GJAHkbqWvtFbM+NCuV0lECqzgEsbEqgvS7NraPfN9ReYTDhFN dKRIqjWH3EO2j849vR5kcb3MVbFjPsAD9EucEKVb7Q3gUaD3qFdN/0Xvo I6dPQUSAS+eGGSOoC7rzSgyZkSrfsCuQrYJhm9dleMScXk1lswDLkbryj iKJLy/xSdNVtcjIy0PldBVdEQ8xitFr2w2f4jUcKvowZ3/ef3aKvr6iBr dEh3NhiLMerk2JqiiqyOZ+Ywa7SEGIwUd/WtL+j9gef5QgUNEmkpn+he9 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="455631477" X-IronPort-AV: E=Sophos;i="6.01,246,1684825200"; d="scan'208";a="455631477" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2023 03:07:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="758279305" X-IronPort-AV: E=Sophos;i="6.01,246,1684825200"; d="scan'208";a="758279305" Received: from unknown (HELO dpdk.sh.intel.com) ([10.239.252.241]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2023 03:07:18 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1] tests/ice_enable_basic_hqos_on_pf: optimize testplan and modify scripts Date: Wed, 2 Aug 2023 02:19:13 +0800 Message-Id: <20230801181913.529821-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 the testplan was designed based on a maximum speed of 8.25Gbps, but the actual tested maximum speed was 9.5Gbps. Optimize the testplan, limit the node Rate limiting to 8.25Gbps, and modify relevant test cases. Signed-off-by: Jiale Song --- test_plans/ice_enable_basic_hqos_on_pf_test_plan.rst | 6 ++++-- tests/TestSuite_ice_enable_basic_hqos_on_pf.py | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test_plans/ice_enable_basic_hqos_on_pf_test_plan.rst b/test_plans/ice_enable_basic_hqos_on_pf_test_plan.rst index e82ebd84..6a96c7c0 100644 --- a/test_plans/ice_enable_basic_hqos_on_pf_test_plan.rst +++ b/test_plans/ice_enable_basic_hqos_on_pf_test_plan.rst @@ -97,7 +97,7 @@ IXIA Sends 8 streams(1-8) with different pkt size(64/128/256/512/1024/1518/512/1 Stream2 has UP1, stream3 has UP2, other streams has UP0. Linerate is 100Gbps, each stream occupied 12.5%Max linerate. The 10Gbps cable limited TX rate of NIC-2,Port-1 to 10Gbps. -Check the actual TX throughput of ens802f0(86:00.0) is about 8.25Gbps. +Check the actual TX throughput of ens802f0(86:00.0) is about 9.5Gbps. When check the throughput ratio of each queue group and queue, stop the forward, and check the TX-packets ratio of queues. The TX-packets ratio of queues is same as TX throughput ratio of queues. @@ -264,11 +264,12 @@ Test Steps testpmd> add port tm node shaper profile 1 3 300 0 10000000 0 0 0 testpmd> add port tm node shaper profile 1 4 300 0 20000000 0 0 0 testpmd> add port tm node shaper profile 1 5 200 0 400000000 0 0 0 + testpmd> add port tm node shaper profile 1 6 200 0 731000000 0 0 0 testpmd> add port tm nonleaf node 1 1000000 -1 0 1 0 -1 1 0 0 testpmd> add port tm nonleaf node 1 900000 1000000 0 1 1 -1 1 0 0 testpmd> add port tm nonleaf node 1 800000 900000 0 1 2 -1 1 0 0 testpmd> add port tm nonleaf node 1 700000 800000 0 1 3 1 1 0 0 - testpmd> add port tm nonleaf node 1 600000 800000 7 1 3 -1 1 0 0 + testpmd> add port tm nonleaf node 1 600000 800000 7 1 3 6 1 0 0 testpmd> add port tm leaf node 1 0 700000 0 1 4 -1 0 0xffffffff 0 0 testpmd> add port tm leaf node 1 1 700000 0 2 4 -1 0 0xffffffff 0 0 testpmd> add port tm leaf node 1 2 700000 0 3 4 -1 0 0xffffffff 0 0 @@ -295,6 +296,7 @@ Test Steps testpmd> stop Check the TX throughput of queue group 0 is limited to 2.4Gbps. + Check the TX throughput of queue group 1 is limited to 5.85Gbps. The TX throughput of queue 0-3 is 1:2:3:4. The throughput of queue 4 is limited to 80Mbps, queue 5 is limited to 80Mbps, diff --git a/tests/TestSuite_ice_enable_basic_hqos_on_pf.py b/tests/TestSuite_ice_enable_basic_hqos_on_pf.py index 61f4c239..9f8d1735 100644 --- a/tests/TestSuite_ice_enable_basic_hqos_on_pf.py +++ b/tests/TestSuite_ice_enable_basic_hqos_on_pf.py @@ -561,11 +561,12 @@ class TestICEEnableBasicHqosOnPF(TestCase): "add port tm node shaper profile {} 3 300 0 10000000 0 0 0", "add port tm node shaper profile {} 4 300 0 20000000 0 0 0", "add port tm node shaper profile {} 5 200 0 400000000 0 0 0", + "add port tm node shaper profile {} 6 200 0 731000000 0 0 0", "add port tm nonleaf node {} 1000000 -1 0 1 0 -1 1 0 0", "add port tm nonleaf node {} 900000 1000000 0 1 1 -1 1 0 0", "add port tm nonleaf node {} 800000 900000 0 1 2 -1 1 0 0", "add port tm nonleaf node {} 700000 800000 0 1 3 1 1 0 0", - "add port tm nonleaf node {} 600000 800000 7 1 3 -1 1 0 0", + "add port tm nonleaf node {} 600000 800000 7 1 3 6 1 0 0", "add port tm leaf node {} 0 700000 0 1 4 -1 0 0xffffffff 0 0", "add port tm leaf node {} 1 700000 0 2 4 -1 0 0xffffffff 0 0", "add port tm leaf node {} 2 700000 0 3 4 -1 0 0xffffffff 0 0", @@ -593,6 +594,7 @@ class TestICEEnableBasicHqosOnPF(TestCase): expected = [[1, 2, 3, 4], [0, 0, 0, 0, 0, 0, 0, 0]] expected_queue = [ [[0, 1, 2, 3], 2.4, "Gbps"], + [[4, 5, 6, 7, 8, 9, 10, 11], 5.85, "Gbps"], [4, 80, "Mbps"], [5, 80, "Mbps"], [6, 800, "Mbps"],