From patchwork Tue Aug 1 18:35:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 129783 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 D417042FB1; Tue, 1 Aug 2023 12:23:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CA0E040F16; Tue, 1 Aug 2023 12:23:59 +0200 (CEST) Received: from mgamail.intel.com (unknown [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id B37D340A89 for ; Tue, 1 Aug 2023 12:23:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690885438; x=1722421438; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GJ3oxVLdf80M6vMWPfdpr64gfxqreD+LPqYotG6bFrE=; b=OfJNTgkH0hEQ2BxinhLCyv1qiFrYpjHt2VEBQKzZwAHVc76P5PzVufGc N//R4JlF6Q/KGmH3QzvKjWBZGY0BQ8yo/FA115HTbtRMAsohHJOoynrWV laS+uXDqTebVb0YDfuvMP7hIjpIAbeUTttoNAp2J9stwInecxONg1GJM0 CN1sbqeFT4QXSUTpz2x0RDEXlmePkV72HnJdx1t3B+sydcfuu/R2DHIsc reEXQtRGaSBSx7Z9OvLw7120Y8XFkYtgp9F5owXR7y7cYnxlAqhjjBgI/ a/WNF0yOn+tU6Hc5H/ApMCJOXDsvpd1y8vUT4BygN3qK0vsts0AyphLN/ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="354190311" X-IronPort-AV: E=Sophos;i="6.01,246,1684825200"; d="scan'208";a="354190311" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2023 03:23:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="798607349" X-IronPort-AV: E=Sophos;i="6.01,246,1684825200"; d="scan'208";a="798607349" Received: from unknown (HELO dpdk.sh.intel.com) ([10.239.252.241]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2023 03:23:56 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1] tests/ice_dcf_qos: optimize scripts Date: Wed, 2 Aug 2023 02:35:50 +0800 Message-Id: <20230801183550.530192-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 | 12 +++++------- 2 files changed, 6 insertions(+), 8 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..b4cc48bc 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") @@ -1848,9 +1848,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/0000:31:00.0/reset"] self.d_a_con(cmds) self.strict_mode_check_peak_tb_rate_preset(vfs_grp, commit_check=False) stream_configs = [