diff mbox series

[V2] tests/vf_kernel:modify default driver from igb_uio to vfio-pci on vm

Message ID 20200813070644.14669-1-weix.xie@intel.com (mailing list archive)
State Accepted
Headers show
Series [V2] tests/vf_kernel:modify default driver from igb_uio to vfio-pci on vm | expand

Commit Message

Xie, WeiX Aug. 13, 2020, 7:06 a.m. UTC
modify vm default driver from igb_uio to vfio-pci

Signed-off-by: Xie wei <weix.xie@intel.com>
---
 tests/TestSuite_vf_kernel.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Comments

Tu, Lijuan Aug. 21, 2020, 2:41 a.m. UTC | #1
> modify vm default driver from igb_uio to vfio-pci
> 
> Signed-off-by: Xie wei <weix.xie@intel.com>

Applied
diff mbox series

Patch

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()