From patchwork Mon Aug 14 15:18:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 130257 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 3138B4305C; Mon, 14 Aug 2023 09:08:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0F8E740A7F; Mon, 14 Aug 2023 09:08:30 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id B9860406A2 for ; Mon, 14 Aug 2023 09:08:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691996908; x=1723532908; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=twP/Wdj0WQgQq9AaRTE+2BLe2GBL5s4y093Qzpim26s=; b=f3g0cH0hZtaLFH2sh8ogt+b3bYr1y4N7dkPXYl4ymVtCWbVpc3zzXGFk zZmj3U5mjtNc/831EumIAfIbwQTQvc2osrdAdF/8gN1hTj/oR+U/msktq G/SH9Vm8QddX1nG5Pk8lICIs/G/jN5ViUEBdUbTILFkZ8lySOIn9+q/cT s0rolxcx+Pc+9XMOIM2bBfV4wIUCtQZG8Y0enoV+pA2fh/zgz42OLjBCA +sToV/Jqn1dHMtKHJKpNQtp94/b8q4OOjOwL70nruDFvXHc8dnudeYK4z NDN5BLreXNF6G/JBFknicXiDTjNQqxYECvvKY4+PjDQx2BBqR7YN0pQ3T A==; X-IronPort-AV: E=McAfee;i="6600,9927,10801"; a="375684980" X-IronPort-AV: E=Sophos;i="6.01,171,1684825200"; d="scan'208";a="375684980" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2023 00:08:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10801"; a="907128391" X-IronPort-AV: E=Sophos;i="6.01,171,1684825200"; d="scan'208";a="907128391" Received: from unknown (HELO dpdk.sh.intel.com) ([10.239.252.241]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2023 00:08:26 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V2] tests/ice_dcf_qos: optimize scripts Date: Mon, 14 Aug 2023 23:18:36 +0800 Message-Id: <20230814151836.1494836-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 optimize scripts: 1. modify pf reset method. 2. modify incorrect inspection ports and detection values according to the testing plan. 3. Modify the detection rate from 25Gbps to 45Gbps. this value is the actual measured value. Signed-off-by: Jiale Song --- test_plans/ice_dcf_qos_test_plan.rst | 2 +- tests/TestSuite_ice_dcf_qos.py | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/test_plans/ice_dcf_qos_test_plan.rst b/test_plans/ice_dcf_qos_test_plan.rst index b2cb08ce..ab3d6035 100644 --- a/test_plans/ice_dcf_qos_test_plan.rst +++ b/test_plans/ice_dcf_qos_test_plan.rst @@ -1238,7 +1238,7 @@ This case is to check if the QoS setting works after resetting PF. 2. Reset pf:: - echo 1 > /sys/devices/pci0000:17/0000:17:00.0/0000:18:00.0/reset + echo 1 > /sys/bus/pci/devices/0000:31:00.0/reset 3. Send same streams as step1, check no packets received and transmitted. diff --git a/tests/TestSuite_ice_dcf_qos.py b/tests/TestSuite_ice_dcf_qos.py index bd0317db..ff4409d0 100644 --- a/tests/TestSuite_ice_dcf_qos.py +++ b/tests/TestSuite_ice_dcf_qos.py @@ -908,7 +908,7 @@ class TestICEDCFQos(TestCase): [[5], 12.5, (8, "Gbps", 3)], [[6], 12.5, (8, "Gbps", 3)], [[7], 12.5, (8, "Gbps", 3)], - [[0, 1, 2, 3, 4, 5, 6, 7], 100, (9.7, "Gbps", 1)], + [[0, 1, 2, 3, 4, 5, 6, 7], 100, (9.77, "Gbps", 3)], ] results = self.check_traffic(stream_configs, traffic_tasks, frame_size=1024) queue_mapping = [ @@ -928,7 +928,7 @@ class TestICEDCFQos(TestCase): ] time.sleep(10) traffic_tasks = [ - [[0, 1, 2, 3, 4, 5, 6, 7], 100, (7.273, "Gbps", 1)], + [[0, 1, 2, 3, 4, 5, 6, 7], 100, (7.273, "Gbps", 3)], ] results = self.check_traffic(stream_configs, traffic_tasks, frame_size=68) self.testpmd_close() @@ -1017,7 +1017,7 @@ class TestICEDCFQos(TestCase): [[5], 12.5, (2, "MBps", 2)], [[6], 12.5, (2, "MBps", 2)], [[7], 12.5, (4, "MBps", 2)], - [[0, 1, 2, 3, 4, 5, 6, 7], 100, (12.5, "Gbps")], + [[0, 1, 2, 3, 4, 5, 6, 7], 100, (128, "Mbps")], ] results = self.check_traffic(stream_configs, traffic_tasks) self.testpmd_close() @@ -1446,7 +1446,7 @@ class TestICEDCFQos(TestCase): ] self.pmd_con(cmds) traffic_tasks = [ - [[0, 1, 2, 3, 4, 5, 6, 7], 100, (25, "Gbps")], + [[0, 1, 2, 3, 4, 5, 6, 7], 100, (45, "Gbps")], ] results = self.check_traffic(stream_configs, traffic_tasks, frame_size=68) self.pmd_con("stop") @@ -1847,10 +1847,7 @@ class TestICEDCFQos(TestCase): ] results = self.check_traffic(stream_configs, traffic_tasks) self.testpmd_close() - pci = str(int(self.nic100g_pci[5:7]) - 1) - cmds = [ - f"echo 1 > /sys/devices/pci0000:{pci}/0000:{pci}:00.0/{self.nic100g_pci}/reset", - ] + cmds = ["echo 1 > /sys/bus/pci/devices/%s/reset" % self.nic100g_pci] self.d_a_con(cmds) self.strict_mode_check_peak_tb_rate_preset(vfs_grp, commit_check=False) stream_configs = [