test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/runtime_vf_queue_number:restore i40e vf to iavf when bind i40evf failed
@ 2020-07-02  7:10 Xie wei
  2020-07-02  7:11 ` Xie, WeiX
  2020-07-02  7:20 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Xie wei @ 2020-07-02  7:10 UTC (permalink / raw)
  To: dts; +Cc: Xie wei

call interface to determine which kernel driver to bind on vm, and the case just verifies queue number.

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

diff --git a/tests/TestSuite_runtime_vf_queue_number.py b/tests/TestSuite_runtime_vf_queue_number.py
index 940e36a..93caf9e 100644
--- a/tests/TestSuite_runtime_vf_queue_number.py
+++ b/tests/TestSuite_runtime_vf_queue_number.py
@@ -365,7 +365,7 @@ class TestRuntimeVfQn(TestCase):
         host_eal_param = '-w %s,queue-num-per-vf=2 --file-prefix=test1 --socket-mem 1024,1024' % self.pf_pci
         self.host_testpmd.start_testpmd(self.pmdout.default_cores, param='', eal_param=host_eal_param)
         self.vm0_testpmd = PmdOutput(self.vm_dut_0)
-        self.vm0_testpmd.execute_cmd("./usertools/dpdk-devbind.py -b i40evf %s" % self.vm_dut_0.ports_info[0]['pci'], expected='# ')
+        self.vm_dut_0.restore_interfaces()
         # wait few seconds for link ready
         countdown = 60
         while countdown:
@@ -380,7 +380,7 @@ class TestRuntimeVfQn(TestCase):
                 countdown -= 1
                 continue
         output = self.vm0_testpmd.execute_cmd("ethtool -S %s" % inf, expected='# ')
-        self.verify("tx-0.packets: 0" in output and "tx-1.packets: 0" in output, "VF0 rxq and txq number is not 2.")
+        self.verify("tx-0.packets" in output and "tx-1.packets" in output, "VF0 rxq and txq number is not 2.")
 
     def tear_down(self):
         self.stop_vm0()
-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] tests/runtime_vf_queue_number:restore i40e vf to iavf when bind i40evf failed
  2020-07-02  7:10 [dts] [PATCH V1] tests/runtime_vf_queue_number:restore i40e vf to iavf when bind i40evf failed Xie wei
@ 2020-07-02  7:11 ` Xie, WeiX
  2020-07-02  7:20 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Xie, WeiX @ 2020-07-02  7:11 UTC (permalink / raw)
  To: dts

[-- Attachment #1: Type: text/plain, Size: 1910 bytes --]

Tested-by:  Xie,WeiX < weix.xie@intel.com>

Regards,
Xie Wei

-----Original Message-----
From: Xie, WeiX 
Sent: Thursday, July 2, 2020 3:10 PM
To: dts@dpdk.org
Cc: Xie, WeiX <weix.xie@intel.com>
Subject: [dts][PATCH V1] tests/runtime_vf_queue_number:restore i40e vf to iavf when bind i40evf failed

call interface to determine which kernel driver to bind on vm, and the case just verifies queue number.

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

diff --git a/tests/TestSuite_runtime_vf_queue_number.py b/tests/TestSuite_runtime_vf_queue_number.py
index 940e36a..93caf9e 100644
--- a/tests/TestSuite_runtime_vf_queue_number.py
+++ b/tests/TestSuite_runtime_vf_queue_number.py
@@ -365,7 +365,7 @@ class TestRuntimeVfQn(TestCase):
         host_eal_param = '-w %s,queue-num-per-vf=2 --file-prefix=test1 --socket-mem 1024,1024' % self.pf_pci
         self.host_testpmd.start_testpmd(self.pmdout.default_cores, param='', eal_param=host_eal_param)
         self.vm0_testpmd = PmdOutput(self.vm_dut_0)
-        self.vm0_testpmd.execute_cmd("./usertools/dpdk-devbind.py -b i40evf %s" % self.vm_dut_0.ports_info[0]['pci'], expected='# ')
+        self.vm_dut_0.restore_interfaces()
         # wait few seconds for link ready
         countdown = 60
         while countdown:
@@ -380,7 +380,7 @@ class TestRuntimeVfQn(TestCase):
                 countdown -= 1
                 continue
         output = self.vm0_testpmd.execute_cmd("ethtool -S %s" % inf, expected='# ')
-        self.verify("tx-0.packets: 0" in output and "tx-1.packets: 0" in output, "VF0 rxq and txq number is not 2.")
+        self.verify("tx-0.packets" in output and "tx-1.packets" in output, "VF0 rxq and txq number is not 2.")
 
     def tear_down(self):
         self.stop_vm0()
-- 
2.17.1


[-- Attachment #2: TestRuntimeVfQn.log --]
[-- Type: application/octet-stream, Size: 23503 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] tests/runtime_vf_queue_number:restore i40e vf to iavf when bind i40evf failed
  2020-07-02  7:10 [dts] [PATCH V1] tests/runtime_vf_queue_number:restore i40e vf to iavf when bind i40evf failed Xie wei
  2020-07-02  7:11 ` Xie, WeiX
@ 2020-07-02  7:20 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-07-02  7:20 UTC (permalink / raw)
  To: Xie, WeiX, dts; +Cc: Xie, WeiX

Applied, thanks

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Xie wei
> Sent: 2020年7月2日 15:10
> To: dts@dpdk.org
> Cc: Xie, WeiX <weix.xie@intel.com>
> Subject: [dts] [PATCH V1] tests/runtime_vf_queue_number:restore i40e vf to
> iavf when bind i40evf failed
> 
> call interface to determine which kernel driver to bind on vm, and the case just
> verifies queue number.
> 
> Signed-off-by: Xie wei <weix.xie@intel.com>
> ---
>  tests/TestSuite_runtime_vf_queue_number.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/TestSuite_runtime_vf_queue_number.py
> b/tests/TestSuite_runtime_vf_queue_number.py
> index 940e36a..93caf9e 100644
> --- a/tests/TestSuite_runtime_vf_queue_number.py
> +++ b/tests/TestSuite_runtime_vf_queue_number.py
> @@ -365,7 +365,7 @@ class TestRuntimeVfQn(TestCase):
>          host_eal_param = '-w %s,queue-num-per-vf=2 --file-prefix=test1 --socket-
> mem 1024,1024' % self.pf_pci
>          self.host_testpmd.start_testpmd(self.pmdout.default_cores, param='',
> eal_param=host_eal_param)
>          self.vm0_testpmd = PmdOutput(self.vm_dut_0)
> -        self.vm0_testpmd.execute_cmd("./usertools/dpdk-devbind.py -b
> i40evf %s" % self.vm_dut_0.ports_info[0]['pci'], expected='# ')
> +        self.vm_dut_0.restore_interfaces()
>          # wait few seconds for link ready
>          countdown = 60
>          while countdown:
> @@ -380,7 +380,7 @@ class TestRuntimeVfQn(TestCase):
>                  countdown -= 1
>                  continue
>          output = self.vm0_testpmd.execute_cmd("ethtool -S %s" % inf,
> expected='# ')
> -        self.verify("tx-0.packets: 0" in output and "tx-1.packets: 0" in output, "VF0
> rxq and txq number is not 2.")
> +        self.verify("tx-0.packets" in output and "tx-1.packets" in output, "VF0 rxq
> and txq number is not 2.")
> 
>      def tear_down(self):
>          self.stop_vm0()
> --
> 2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-02  7:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-02  7:10 [dts] [PATCH V1] tests/runtime_vf_queue_number:restore i40e vf to iavf when bind i40evf failed Xie wei
2020-07-02  7:11 ` Xie, WeiX
2020-07-02  7:20 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).