From patchwork Thu Aug 13 07:06:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xie, WeiX" X-Patchwork-Id: 75477 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 4CED3A04B0; Thu, 13 Aug 2020 09:05:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 16B4A1C022; Thu, 13 Aug 2020 09:05:19 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 983A21C00D for ; Thu, 13 Aug 2020 09:05:17 +0200 (CEST) IronPort-SDR: 0GTRyZsN3mS8yQhVOlvW41nmSKnOXq3vFBtZ08h3ayMeUSjkAz+DlGJdmklE4vDlUt5WItQIvF SbmcvfmfGwRw== X-IronPort-AV: E=McAfee;i="6000,8403,9711"; a="151819381" X-IronPort-AV: E=Sophos;i="5.76,307,1592895600"; d="scan'208";a="151819381" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Aug 2020 00:05:16 -0700 IronPort-SDR: lScp//6b6CdsHXBd4I3CgKJ+NOK5/ugAOeeVWIcCMTmligZOEpM5daHyAOnfzhvLbRNV/bayzM 0hakLTNwpHxA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,307,1592895600"; d="scan'208";a="399079168" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by fmsmga001.fm.intel.com with ESMTP; 13 Aug 2020 00:05:15 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Thu, 13 Aug 2020 15:06:44 +0800 Message-Id: <20200813070644.14669-1-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V2] tests/vf_kernel:modify default driver from igb_uio to vfio-pci on vm 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" modify vm default driver from igb_uio to vfio-pci Signed-off-by: Xie wei --- tests/TestSuite_vf_kernel.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_vf_kernel.py b/tests/TestSuite_vf_kernel.py index f2f28fe..54676c2 100755 --- a/tests/TestSuite_vf_kernel.py +++ b/tests/TestSuite_vf_kernel.py @@ -706,7 +706,7 @@ class TestVfKernel(TestCase): """ self.vm0_dut.send_expect("ifconfig %s up " % self.vm0_intf0, "#") self.vm0_dut.send_expect("ifconfig %s up " % self.vm0_intf1, "#") - self.vm0_dut.ports_info[1]['port'].bind_driver('igb_uio') + self.vm0_dut.ports_info[1]['port'].bind_driver('vfio-pci') # because of alt_session is false, host cmd need to execute before testpmd start vm0_vf0_mac = self.vm0_dut.ports_info[0]['port'].get_mac_addr() @@ -790,11 +790,11 @@ class TestVfKernel(TestCase): self.verify(self.check_pf_vf_link_status( self.vm1_dut, vm1_intf), "VM1_vf: %s link down" % vm1_intf) - # Bind kernel VF0, VF1 to igb_uio in VM0, bind kernel VF4 to igb_uio in + # Bind kernel VF0, VF1 to vfio-pci in VM0, bind kernel VF4 to vfio-pci in # VM1 - self.vm0_dut.ports_info[0]['port'].bind_driver('igb_uio') - self.vm0_dut.ports_info[1]['port'].bind_driver('igb_uio') - self.vm1_dut.ports_info[0]['port'].bind_driver('igb_uio') + self.vm0_dut.ports_info[0]['port'].bind_driver('vfio-pci') + self.vm0_dut.ports_info[1]['port'].bind_driver('vfio-pci') + self.vm1_dut.ports_info[0]['port'].bind_driver('vfio-pci') # because of alt_session is false, host cmd need to execute before testpmd start vm0_vf2_mac = self.vm0_dut.ports_info[2]['port'].get_mac_addr()