From patchwork Fri Dec 30 18:28:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 121483 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 7D7D1A0032; Fri, 30 Dec 2022 11:30:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6096A40DD8; Fri, 30 Dec 2022 11:30:22 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 7266B4067B for ; Fri, 30 Dec 2022 11:30:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672396220; x=1703932220; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=tGYI1ynzdulUvzZ3ff3LiQtkL4hExEHaQNIMInd7/BY=; b=my1FmaioD1K+97eoUVzd/Oz/8O3zvGrV6DVnDlcbmOHvwzkUF6CwIE5X ih05/K4THRiHPalkM/tb+6lk/YYk626FPoYTXgA07EZeTh6eBzq9Kd+X6 cGJ5PPQZJE1kp7vIGqwFM98cYdhTKhfGb3/810uKtQckV54IYTliI+FQd Qphr2uhmpEmRVk9KZGpS/7vLKlGdwRi5RnWcmrxtW2+X03h+Ckw5yrB5X dTMC7harXn3dP7/84E+lFUlE2T1nWLKyAVsrDhOgFAdbD79Pu+RuKUjma 3DnC5dhwwP3CtON6XkmZgP6l7UGmmbD2OhVC1s/6Q2Unxd9JQOsJkbftU g==; X-IronPort-AV: E=McAfee;i="6500,9779,10575"; a="321260896" X-IronPort-AV: E=Sophos;i="5.96,287,1665471600"; d="scan'208";a="321260896" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Dec 2022 02:30:19 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10575"; a="717149116" X-IronPort-AV: E=Sophos;i="5.96,287,1665471600"; d="scan'208";a="717149116" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Dec 2022 02:30:18 -0800 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V3 1/2] tests/multiprocess: add new case according to testplan Date: Fri, 30 Dec 2022 18:28:09 +0000 Message-Id: <20221230182810.1004957-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 add 1 case according to testplan. Signed-off-by: Song Jiale --- v3: -rework the test case according to the new testplan tests/TestSuite_multiprocess.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_multiprocess.py b/tests/TestSuite_multiprocess.py index 4fdc8c27..099ce6e7 100644 --- a/tests/TestSuite_multiprocess.py +++ b/tests/TestSuite_multiprocess.py @@ -1691,6 +1691,29 @@ class TestMultiprocess(TestCase): } self.rte_flow(mac_ipv4_symmetric, self.multiprocess_rss_data, **pmd_param) + def test_multiprocess_negative_action(self): + """ + Test Case: test_multiprocess_negative_action + + """ + # start testpmd multi-process + self.launch_multi_testpmd( + proc_type="auto", + queue_num=4, + process_num=2, + ) + for pmd_output in self.pmd_output_list: + pmd_output.execute_cmd("stop") + # set secondary process port stop + try: + self.pmd_output_list[1].execute_cmd("port stop 0") + self.pmd_output_list[1].execute_cmd("port reset 0") + except Exception as ex: + out = self.pmd_output_list[1].get_output() + self.verify( + "core dump" not in out, "Core dump occurred in the secondary process!!!" + ) + def test_perf_multiprocess_performance(self): """ Benchmark Multiprocess performance. @@ -1926,4 +1949,3 @@ class TestMultiprocess(TestCase): Run after each test suite. """ self.dut.kill_all() - pass From patchwork Fri Dec 30 18:28:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 121484 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 7A7EEA00C3; Fri, 30 Dec 2022 11:30:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7636142D39; Fri, 30 Dec 2022 11:30:23 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 8A6674067B for ; Fri, 30 Dec 2022 11:30:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672396221; x=1703932221; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=F0Cd8vfHRg30DXudcGenpf6lMit+wagQk5Ri6y5Nfdo=; b=QHt2Q1uTZ0fL9ke2MXCppKwfbnuu/SIEstj5o+cI/zPJVZwZBuCS24/n gPvkXvj2DYhq7rlFenO3i+aVewgGgwOXGW/d2SLvJeUUPvPJhw27Hjhjh WIR4C15q5GWIrrmDRd3w/ckdx2pi1t7PNV3qgeft1gOKu+c8+g7Q20tpc /pjkYUD8IGhCXQlWOYtA6HlQV5SkfQsHpUECajMmUrW/SI23EiLewPuPI wnluVcbiohdEPU2csyCrbkLX3er6mrwOIJsQzkR2Z6amE2WCgGCi8bbVh ASRJuBgYOpeV7c3qBHaTu9I7taDYL2bDj6D5xddEeivkxTMITOmwZlI21 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10575"; a="321260900" X-IronPort-AV: E=Sophos;i="5.96,287,1665471600"; d="scan'208";a="321260900" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Dec 2022 02:30:21 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10575"; a="717149121" X-IronPort-AV: E=Sophos;i="5.96,287,1665471600"; d="scan'208";a="717149121" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Dec 2022 02:30:19 -0800 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale , Jin Ling Subject: [dts] [PATCH V3 2/2] test_plans/multiprocess: add 1 case Date: Fri, 30 Dec 2022 18:28:10 +0000 Message-Id: <20221230182810.1004957-2-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221230182810.1004957-1-songx.jiale@intel.com> References: <20221230182810.1004957-1-songx.jiale@intel.com> 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 add a case to test the testpmd secondary process crash of the pf port. Signed-off-by: Jin Ling Signed-off-by: Song Jiale Acked-by: Jin Ling Acked-by: Lijuan Tu --- v3: -redesign testplan test_plans/multiprocess_test_plan.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/test_plans/multiprocess_test_plan.rst b/test_plans/multiprocess_test_plan.rst index bfef1ca9..d3e60d9e 100644 --- a/test_plans/multiprocess_test_plan.rst +++ b/test_plans/multiprocess_test_plan.rst @@ -969,3 +969,26 @@ Test Case: test_multiprocess_negative_exceed_process_num the first and second processes should be launched successfully the third process should be launched failed and output should contain the following string: 'multi-process option proc-id(2) should be less than num-procs(2)' + +Test Case: test_multiprocess_negative_action +============================================ +Subcase 1: test_secondary_process_port_reset +-------------------------------------------- +test steps +~~~~~~~~~~ + +1. Launch the app ``testpmd``, start primary process and secondary process with the following arguments:: + + ./dpdk-testpmd -l 1,2 --proc-type=auto -a 0000:17:00.0 --log-level=ice,7 -- -i --rxq=4 --txq=4 --num-procs=2 --proc-id=0 + ./dpdk-testpmd -l 3,4 --proc-type=auto -a 0000:17:00.0 --log-level=ice,7 -- -i --rxq=4 --txq=4 --num-procs=2 --proc-id=1 + +2. reset port in secondary process:: + + secondary process: + testpmd> port stop 0 + testpmd> port reset 0 + +expected result +~~~~~~~~~~ + + Check that there are no ``core dump`` messages in the output. \ No newline at end of file