[V1] tests/vf_kernel:change vm default driver from igb_uio to vfio-pci
diff mbox series

Message ID 20200812094249.29836-1-weix.xie@intel.com
State Superseded
Headers show
Series
  • [V1] tests/vf_kernel:change vm default driver from igb_uio to vfio-pci
Related show

Commit Message

Xie, WeiX Aug. 12, 2020, 9:42 a.m. UTC
change vm driver from igb_uio to vfio-pci

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

Comments

Xie, WeiX Aug. 12, 2020, 9:42 a.m. UTC | #1
Tested-by:  Xie,WeiX < weix.xie@intel.com>

Regards,
Xie Wei


-----Original Message-----
From: Xie, WeiX 
Sent: Wednesday, August 12, 2020 5:43 PM
To: dts@dpdk.org
Cc: Xie, WeiX <weix.xie@intel.com>
Subject: [dts][PATCH V1] tests/vf_kernel:change vm default driver from igb_uio to vfio-pci

change vm driver from igb_uio to vfio-pci

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

diff --git a/tests/TestSuite_vf_kernel.py b/tests/TestSuite_vf_kernel.py index f2f28fe..23c994c 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()
@@ -792,9 +792,9 @@ class TestVfKernel(TestCase):
 
         # Bind kernel VF0, VF1 to igb_uio in VM0, bind kernel VF4 to igb_uio 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()
--
2.17.1
Tu, Lijuan Aug. 13, 2020, 5:46 a.m. UTC | #2
> Subject: [dts] [PATCH V1] tests/vf_kernel:change vm default driver from igb_uio
> to vfio-pci
> 
> change vm driver from igb_uio to vfio-pci
> 
> Signed-off-by: Xie wei <weix.xie@intel.com>
> ---
>  tests/TestSuite_vf_kernel.py | 8 ++++----

>          # Bind kernel VF0, VF1 to igb_uio in VM0, bind kernel VF4 to igb_uio 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')

Comments are not align with code.

Patch
diff mbox series

diff --git a/tests/TestSuite_vf_kernel.py b/tests/TestSuite_vf_kernel.py
index f2f28fe..23c994c 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()
@@ -792,9 +792,9 @@  class TestVfKernel(TestCase):
 
         # Bind kernel VF0, VF1 to igb_uio in VM0, bind kernel VF4 to igb_uio 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()