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 8D906A04B0; Fri, 14 Aug 2020 12:02:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 829A81C0CE; Fri, 14 Aug 2020 12:02:06 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id B77501C0BC for ; Fri, 14 Aug 2020 12:02:04 +0200 (CEST) IronPort-SDR: pEBdX89CGh+heRv6asSU401x+cfZqg31ikUZ8DHbq3ssX03NhBP6efNBuQsiUnDvTwtd2jEAUQ hDap+yyNKnsQ== X-IronPort-AV: E=McAfee;i="6000,8403,9712"; a="153614345" X-IronPort-AV: E=Sophos;i="5.76,311,1592895600"; d="scan'208";a="153614345" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2020 03:02:03 -0700 IronPort-SDR: o/pz6t+EV8OMxElC6E9QYUtqTQELWAJWiS8POMAwSIEXbwP2sTC6hJztyMarbcSk01MmUMeqa+ BpITg0yhrL/A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,311,1592895600"; d="scan'208";a="399429652" Received: from unknown (HELO localhost.localdomain) ([10.240.183.52]) by fmsmga001.fm.intel.com with ESMTP; 14 Aug 2020 03:02:03 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Fri, 14 Aug 2020 09:46:10 +0000 Message-Id: <20200814094610.62592-1-qimaix.xiao@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V2] update eal parameter only use one port 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" *. in those two suites vhost side can only use one port to receive packets Signed-off-by: Xiao Qimai --- tests/TestSuite_pvp_virtio_bonding.py | 3 ++- tests/TestSuite_virtio_user_for_container_networking.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_pvp_virtio_bonding.py b/tests/TestSuite_pvp_virtio_bonding.py index b551487..fcde9ee 100644 --- a/tests/TestSuite_pvp_virtio_bonding.py +++ b/tests/TestSuite_pvp_virtio_bonding.py @@ -90,7 +90,8 @@ class TestPVPVirtIOBonding(TestCase): params = "--port-topology=chained --nb-cores=4 --txd=1024 --rxd=1024" eal_param = "--file-prefix=vhost %s " % vdev_info self.vhost_testpmd = PmdOutput(self.dut) - self.vhost_testpmd.start_testpmd(self.core_config, params, eal_param=eal_param) + self.pci_info = self.dut.ports_info[0]['pci'] + self.vhost_testpmd.start_testpmd(self.core_config, params, eal_param=eal_param,ports=[self.pci_info]) self.vhost_testpmd.execute_cmd('set fwd mac') self.vhost_testpmd.execute_cmd('start') diff --git a/tests/TestSuite_virtio_user_for_container_networking.py b/tests/TestSuite_virtio_user_for_container_networking.py index 76f0aea..36a7838 100644 --- a/tests/TestSuite_virtio_user_for_container_networking.py +++ b/tests/TestSuite_virtio_user_for_container_networking.py @@ -154,7 +154,8 @@ class TestVirtioUserForContainer(TestCase): """ start testpmd as vhost """ - eal_param = self.dut.create_eal_parameters(cores=self.core_list_vhost_user, prefix='vhost', vdevs=["net_vhost0,iface=vhost-net,queues=%d,client=0" % self.queue_number]) + self.pci_info = self.dut.ports_info[0]['pci'] + eal_param = self.dut.create_eal_parameters(cores=self.core_list_vhost_user, prefix='vhost', vdevs=["net_vhost0,iface=vhost-net,queues=%d,client=0" % self.queue_number],ports=[self.pci_info]) if self.check_2M_env: eal_param += " --single-file-segments" command_line_client = self.dut.target + '/app/testpmd ' + eal_param + ' -- -i --nb-cores=%d' % self.nb_cores -- 2.25.1