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 472ABA0C45; Wed, 22 Sep 2021 12:08:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3EEC6411A8; Wed, 22 Sep 2021 12:08:04 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 5CD9441196 for ; Wed, 22 Sep 2021 12:08:02 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10114"; a="223603671" X-IronPort-AV: E=Sophos;i="5.85,313,1624345200"; d="scan'208";a="223603671" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2021 03:08:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,313,1624345200"; d="scan'208";a="454687267" Received: from silpixa00400220.ir.intel.com ([10.237.214.119]) by orsmga002.jf.intel.com with ESMTP; 22 Sep 2021 03:07:59 -0700 From: Reshma Pattan To: dts@dpdk.org Cc: Reshma Pattan Date: Wed, 22 Sep 2021 18:07:57 +0800 Message-Id: <1632305277-412322-1-git-send-email-reshma.pattan@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH] [PATCH]tests/power: replace eal whitelist option 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 Sender: "dts" replace eal whitelist option '-w' with all '-a' option. Signed-off-by: Reshma Pattan --- test_plans/power_negative_test_plan.rst | 4 ++-- tests/TestSuite_power_negative.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test_plans/power_negative_test_plan.rst b/test_plans/power_negative_test_plan.rst index b1de4d4..7656368 100644 --- a/test_plans/power_negative_test_plan.rst +++ b/test_plans/power_negative_test_plan.rst @@ -149,11 +149,11 @@ Test Case4: TRAFFIC Policy Test based on JSON configure file with large integer Step 1. Generate 1 VF under vfio-pci driver, launch vm_power_mgr sample with PF, for example:: echo 1 > /sys/bus/pci/drivers/vfio-pci/0000\:82\:00.0/max_vfs - ./examples/vm_power_manager/build/vm_power_mgr -l 1-4 -n 4 --socket-mem=1024,1024 --file-prefix=test1 -w 82:00.0 -- -p 0x01 + ./examples/vm_power_manager/build/vm_power_mgr -l 1-4 -n 4 --socket-mem=1024,1024 --file-prefix=test1 -a 82:00.0 -- -p 0x01 Step 2. Launch testpmd with VF:: - ./x86_64-native-linuxapp-gcc/app/testpmd -l 5-6 -n 4 --socket-mem=1024,1024 --file-prefix=test2 -w 0000:82:02.0 -- -i + ./x86_64-native-linuxapp-gcc/app/testpmd -l 5-6 -n 4 --socket-mem=1024,1024 --file-prefix=test2 -a 0000:82:02.0 -- -i > set fwd macswap > start diff --git a/tests/TestSuite_power_negative.py b/tests/TestSuite_power_negative.py index f6d4149..9c290ba 100644 --- a/tests/TestSuite_power_negative.py +++ b/tests/TestSuite_power_negative.py @@ -487,9 +487,9 @@ class TestPowerNegative(TestCase): # ======================================================================================== # Step1. Generate 1 VF under igb_uio driver, launch vm_power_mgr sample with PF, for example: # echo 1 > /sys/bus/pci/drivers/igb_uio/0000\:82\:00.0/max_vfs - # ./examples/vm_power_manager/build/vm_power_mgr -l 1-4 -n 4 --socket-mem=1024,1024 --file-prefix=test1 -w 82:00.0 -- -p 0x01 + # ./examples/vm_power_manager/build/vm_power_mgr -l 1-4 -n 4 --socket-mem=1024,1024 --file-prefix=test1 -a 82:00.0 -- -p 0x01 # Step 2. Launch testpmd with VF - # ./x86_64-native-linuxapp-gcc/app/testpmd -l 5-6 -n 4 --socket-mem=1024,1024 --file-prefix=test2 -w 0000:82:02.0 -- -i + # ./x86_64-native-linuxapp-gcc/app/testpmd -l 5-6 -n 4 --socket-mem=1024,1024 --file-prefix=test2 -a 0000:82:02.0 -- -i # >set fwd macswap # >start # Step 3. Prepare traffic policy in JSON format then send it to the power demon sample, put the VF MAC into the mac_list: @@ -508,7 +508,7 @@ class TestPowerNegative(TestCase): self.d_con([f'echo 1 > "/sys/bus/pci/drivers/vfio-pci/{self.port_pci}/sriov_numvfs"', '#', 10]) # start vm_power_mgr - cmd = f'{self.vm_power_mgr} -l 1-4 -n 4 --socket-mem=1024,1024 --file-prefix=test1 -w {self.port_pci} -- -p 0x01' + cmd = f'{self.vm_power_mgr} -l 1-4 -n 4 --socket-mem=1024,1024 --file-prefix=test1 -a {self.port_pci} -- -p 0x01' self.d_a_con([cmd, 'vmpower>', 30]) self.is_mgr_on = True @@ -516,7 +516,7 @@ class TestPowerNegative(TestCase): self.logger.info(vm_info) # Step 2. Launch testpmd with VF - cmd = f'{self.testpmd} -l 5-6 -n 4 --socket-mem=1024,1024 --file-prefix=test2 -w {self.port_pci} -- -i' + cmd = f'{self.testpmd} -l 5-6 -n 4 --socket-mem=1024,1024 --file-prefix=test2 -a {self.port_pci} -- -i' self.d_con([cmd, 'testpmd>', 30]) self.is_testpmd_on = True -- 1.8.3.1