From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2FBC9A09FF; Tue, 29 Dec 2020 02:55:10 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1B7C8C9D8; Tue, 29 Dec 2020 02:55:09 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id AC303C9C6 for ; Tue, 29 Dec 2020 02:55:06 +0100 (CET) IronPort-SDR: 0sJzfuqRa5evgg87yBQvATz+Hyih3hONkc8MxLdvLnq56JS0/Q1denPGZSzkBGPfqRZq0ibrf1 mqfSUQouC3oA== X-IronPort-AV: E=McAfee;i="6000,8403,9848"; a="172933935" X-IronPort-AV: E=Sophos;i="5.78,456,1599548400"; d="scan'208";a="172933935" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2020 17:55:05 -0800 IronPort-SDR: ox9yoezTAgieOegnX+o9M6oyt+KDyv+22cdisofCbbIGjUvcQAr4kFMg1VfOOYpp6OBIFy1rGb CUvZ0VTbjt5w== X-IronPort-AV: E=Sophos;i="5.78,456,1599548400"; d="scan'208";a="375861771" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2020 17:55:03 -0800 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Tue, 29 Dec 2020 09:57:22 +0800 Message-Id: <20201229015722.5500-2-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201229015722.5500-1-weix.xie@intel.com> References: <20201229015722.5500-1-weix.xie@intel.com> Subject: [dts] [PATCH V1 2/2] tests/TestSuite_veb_switch:use differents cores between vf to vf X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" If several testpmd are started at the same time for vfs, the rx_stats scale between vf to vf are quite different. So different cores should be used. Signed-off-by: Xie wei --- tests/TestSuite_veb_switch.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_veb_switch.py b/tests/TestSuite_veb_switch.py index 81894782..00dd76e7 100644 --- a/tests/TestSuite_veb_switch.py +++ b/tests/TestSuite_veb_switch.py @@ -182,6 +182,10 @@ class TestVEBSwitching(TestCase): self.pf_mac_address = self.dut.get_mac_address(0) self.pf_pci = self.dut.ports_info[self.used_dut_port]['pci'] + self.dut.init_reserved_core() + self.cores_vf0 = self.dut.get_reserved_core('2C', 0) + self.cores_vf1 = self.dut.get_reserved_core('2C', 0) + def set_up(self): """ This is to clear up environment before the case run. @@ -239,13 +243,10 @@ class TestVEBSwitching(TestCase): the packets. Check Inter VF-VF MAC switch. """ self.setup_env(driver='default') - self.dut.init_reserved_core() - cores_vf1 = self.dut.get_reserved_core('2C',0) - self.pmdout.start_testpmd(cores_vf1, prefix="test1", ports=[self.sriov_vfs_port[0].pci], param="--eth-peer=0,%s" % self.vf1_mac) + self.pmdout.start_testpmd(self.cores_vf0, prefix="test1", ports=[self.sriov_vfs_port[0].pci], param="--eth-peer=0,%s" % self.vf1_mac) self.dut.send_expect("set fwd txonly", "testpmd>") self.dut.send_expect("set promisc all off", "testpmd>") - cores_vf2 = self.dut.get_reserved_core('2C',0) - self.pmdout_2.start_testpmd(cores_vf2, prefix="test2", ports=[self.sriov_vfs_port[1].pci]) + self.pmdout_2.start_testpmd(self.cores_vf1, prefix="test2", ports=[self.sriov_vfs_port[1].pci]) self.session_secondary.send_expect("set fwd rxonly", "testpmd>") self.session_secondary.send_expect("set promisc all off", "testpmd>") self.session_secondary.send_expect("start", "testpmd>", 5) @@ -458,12 +459,12 @@ class TestVEBSwitching(TestCase): self.pmdout.start_testpmd("Default", prefix="test1", ports=[self.pf_pci]) self.dut.send_expect("set promisc all off", "testpmd>") - self.pmdout_2.start_testpmd("Default", prefix="test2", ports=[self.sriov_vfs_port[0].pci], param="--eth-peer=0,%s" % self.vf1_mac) + self.pmdout_2.start_testpmd(self.cores_vf0, prefix="test2", ports=[self.sriov_vfs_port[0].pci], param="--eth-peer=0,%s" % self.vf1_mac) self.session_secondary.send_expect("set fwd txonly", "testpmd>") self.session_secondary.send_expect("set promisc all off", "testpmd>") time.sleep(2) - self.pmdout_3.start_testpmd("Default", prefix="test3", ports=[self.sriov_vfs_port[1].pci]) + self.pmdout_3.start_testpmd(self.cores_vf1, prefix="test3", ports=[self.sriov_vfs_port[1].pci]) self.session_third.send_expect("mac_addr add 0 %s" % self.vf1_mac, "testpmd>") self.session_third.send_expect("set fwd rxonly", "testpmd>") self.session_third.send_expect("set promisc all off", "testpmd>") -- 2.17.1