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 A0E9AA0350; Mon, 29 Jun 2020 09:31:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 475EA1B13C; Mon, 29 Jun 2020 09:31:54 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id DADA82C01 for ; Mon, 29 Jun 2020 09:31:52 +0200 (CEST) IronPort-SDR: +GWlKxANF1VADkqiaLRt3BnJ0I5lEnc2Ltw/sO6bzak2f4MdVkfbwzHAgFBKR1Uipn07gX9hVz LfaSqWId3GBQ== X-IronPort-AV: E=McAfee;i="6000,8403,9666"; a="125549686" X-IronPort-AV: E=Sophos;i="5.75,294,1589266800"; d="scan'208";a="125549686" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2020 00:31:51 -0700 IronPort-SDR: Oidr0J7w6TYux+T+CaYl916+b7F+YlJ7G8QZUF+4TmSV5RyOZJEFalp3DJn3gQ/uCfpEDDoqj4 9ARsYO/izlzA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,294,1589266800"; d="scan'208";a="294805962" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 29 Jun 2020 00:31:50 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Mon, 29 Jun 2020 15:30:31 +0800 Message-Id: <20200629073031.7689-1-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/port_control:change vm dpdk driver from igb_uio to vfio-pci 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" Change driver to vfio-pci on vm. Add param '--vfio-intr=legacy' to fix port link status still down issue, add some time to wait link status up. Signed-off-by: Xie wei --- tests/TestSuite_port_control.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_port_control.py b/tests/TestSuite_port_control.py index 1a588d3..147dc80 100644 --- a/tests/TestSuite_port_control.py +++ b/tests/TestSuite_port_control.py @@ -157,8 +157,8 @@ class TestPortControl(TestCase): terminal.send_expect("ifconfig %s hw ether %s" % (vf_if[1], self.vf_mac), "#") terminal.send_expect("ifconfig %s up" % vf_if[1], "#") terminal.send_expect("ip addr flush %s " % vf_if[1], "#") - terminal.send_expect("./usertools/dpdk-devbind.py -b igb_uio --force %s" % vf_pci[1], "#") - cmd = "./%s/app/testpmd -n 1 -w %s -- -i" % (self.target, vf_pci[1]) + terminal.send_expect("./usertools/dpdk-devbind.py -b vfio-pci --force %s" % vf_pci[1], "#") + cmd = "./%s/app/testpmd -n 1 -w %s --vfio-intr=legacy -- -i" % (self.target, vf_pci[1]) terminal.send_expect(cmd, "testpmd>", 10) def start_testpmd(self, terminal): @@ -171,6 +171,7 @@ class TestPortControl(TestCase): def start_pmd_port(self, terminal): terminal.execute_cmd("port start all") terminal.execute_cmd("start") + time.sleep(5) terminal.wait_link_status_up('all', timeout=5) ret = terminal.get_port_link_status(self.port_id_0) self.verify(ret == "up", "port not up!") -- 2.17.1