From patchwork Mon Nov 9 15:29:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sun, QinX" X-Patchwork-Id: 83830 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 871CAA0527; Mon, 9 Nov 2020 07:52:54 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5ABBC5913; Mon, 9 Nov 2020 07:52:53 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id C720058C4 for ; Mon, 9 Nov 2020 07:52:50 +0100 (CET) IronPort-SDR: 4++Knw04X8AUwL93USXzsjvjlD2mzT4Aief7osbDBuvK/P/1EK8jTyncSHwF4rA3Zw4pfKkEsn m6yGcIxOW8kg== X-IronPort-AV: E=McAfee;i="6000,8403,9799"; a="233924871" X-IronPort-AV: E=Sophos;i="5.77,462,1596524400"; d="scan'208";a="233924871" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2020 22:52:49 -0800 IronPort-SDR: XhsYjmipnfblKsJZrReFJT2RUKC2VPyf/36CHXqDrXNyFJzzXWg6DXgx0NB/RlzfmS6MjQ6Fx2 iDak9nJYVsTQ== X-IronPort-AV: E=Sophos;i="5.77,462,1596524400"; d="scan'208";a="307557204" Received: from unknown (HELO localhost.localdomain) ([10.240.183.105]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2020 22:52:48 -0800 From: sunqin To: dts@dpdk.org Cc: sunqin Date: Mon, 9 Nov 2020 15:29:52 +0000 Message-Id: <20201109152952.17279-1-qinx.sun@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/veb_switch use different cores for 2 vfs 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" When several testpmd are started at the same time, different cores should be used Signed-off-by: sunqin Tested-by: Sun, QinX --- tests/TestSuite_veb_switch.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_veb_switch.py b/tests/TestSuite_veb_switch.py index f51a8d3..8189478 100644 --- a/tests/TestSuite_veb_switch.py +++ b/tests/TestSuite_veb_switch.py @@ -239,11 +239,13 @@ class TestVEBSwitching(TestCase): the packets. Check Inter VF-VF MAC switch. """ self.setup_env(driver='default') - self.pmdout.start_testpmd("Default", prefix="test1", ports=[self.sriov_vfs_port[0].pci], param="--eth-peer=0,%s" % self.vf1_mac) + 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.dut.send_expect("set fwd txonly", "testpmd>") self.dut.send_expect("set promisc all off", "testpmd>") - - self.pmdout_2.start_testpmd("Default", prefix="test2", ports=[self.sriov_vfs_port[1].pci]) + 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.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)