From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5DB8FA00C3; Fri, 30 Dec 2022 11:42:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E433042D3A; Fri, 30 Dec 2022 11:42:52 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 4F1DE4067B for ; Fri, 30 Dec 2022 11:42:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672396971; x=1703932971; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EJ8faRnXm/fNbHmQwHuC0oaRfnXVUMUhFu1VlpeGrio=; b=PQNMsCgXGWzBkj+ejDCeMjalK13QWr23sVhb6igKI8aNuH62jbkrjtp2 tYVS32raw4FwOc/YYH+UaZ23kGHz7wgCobDoBFLzwwCMR+F8cSG6MhHQL sfQdRI6YffaJfBs0GoXXkwXESyZ/UFDhRJ1lekbVCcZ79k5LRlFX2qpVk 9jg5J4EAE0FMM0ElbjC4chwNTm/RmD/nDYYv6cpK7K3Z963ZX4uXEmvDf EME9FFkSXaqHTG/NuBqEqG/t1X/QGKjTxNTgKlcLsXjDgMiRPo3LIRkZt HlA+eOgufEqDQ3WDzxHrVJpDG+5i+0zUgqJBjiXRVC2btNryHUb0Fak4z A==; X-IronPort-AV: E=McAfee;i="6500,9779,10575"; a="318887656" X-IronPort-AV: E=Sophos;i="5.96,287,1665471600"; d="scan'208";a="318887656" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Dec 2022 02:42:50 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10575"; a="827944187" X-IronPort-AV: E=Sophos;i="5.96,287,1665471600"; d="scan'208";a="827944187" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Dec 2022 02:42:49 -0800 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale , Jin Ling Subject: [dts] [PATCH V3 2/2] test_plans/multiprocess_iavf: add 1 case Date: Fri, 30 Dec 2022 18:40:39 +0000 Message-Id: <20221230184039.1005671-2-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221230184039.1005671-1-songx.jiale@intel.com> References: <20221230184039.1005671-1-songx.jiale@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 primary process and secondary process crash of the vf port. Signed-off-by: Jin Ling Signed-off-by: Song Jiale --- v3: -redesign testplan test_plans/multiprocess_iavf_test_plan.rst | 47 +++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/test_plans/multiprocess_iavf_test_plan.rst b/test_plans/multiprocess_iavf_test_plan.rst index 2f5ae54a..b6222773 100644 --- a/test_plans/multiprocess_iavf_test_plan.rst +++ b/test_plans/multiprocess_iavf_test_plan.rst @@ -54,9 +54,11 @@ If using vfio the kernel must be >= 3.6+ and VT-d must be enabled in bios.When using vfio, use the following commands to load the vfio driver and bind it to the device under test:: + echo 1 > /sys/bus/pci/devices/0000:17:00.0/sriov_numvfs + ip link set ens9 vf0 mac 00:11:22:33:44:55 modprobe vfio modprobe vfio-pci - usertools/dpdk-devbind.py --bind=vfio-pci device_bus_id + usertools/dpdk-devbind.py --bind=vfio-pci {vf_pci} Assuming that a DPDK build has been set up and the multi-process sample applications have been built. @@ -948,3 +950,46 @@ 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_stop +------------------------------------------- +test steps +~~~~~~~~~~ + +1. Launch the app ``testpmd``, start 2 process with the following arguments:: + + ./dpdk-testpmd -l 1,2 --proc-type=auto -a 0000:17:01.0 --log-level=ice,7 -- -i --num-procs=2 --proc-id=0 + ./dpdk-testpmd -l 3,4 --proc-type=auto -a 0000:17:01.0 --log-level=ice,7 -- -i --num-procs=2 --proc-id=1 + +2. stop port in primary process:: + + primary process: + testpmd> port stop 0 + +expected result +~~~~~~~~~~~~~~~ + + Check that there are no core dump messages in the output. + +Subcase 2: test_secondary_process_port_reset +-------------------------------------------- +test steps +~~~~~~~~~~ + +1. Launch the app ``testpmd``, start 2 process with the following arguments:: + + ./dpdk-testpmd -l 1,2 --proc-type=auto -a 0000:17:01.0 --log-level=ice,7 -- -i --num-procs=2 --proc-id=0 + ./dpdk-testpmd -l 3,4 --proc-type=auto -a 0000:17:01.0 --log-level=ice,7 -- -i --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 -- 2.25.1