diff mbox series

[V1,2/2] tests/TestSuite_runtime_vf_queue_number_kernel:the queue pairs number up to 256 for iavf

Message ID 20201228065717.32677-2-weix.xie@intel.com (mailing list archive)
State Accepted
Headers show
Series [V1,1/2] tests/TestSuite_runtime_vf_queue_number:the queue pairs number up to 256 for iavf | expand

Commit Message

Xie, WeiX Dec. 28, 2020, 6:57 a.m. UTC
as the queue pairs number up to 256 queue pairs per VF, so change 17 to
257 for testing.

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

Comments

Xie, WeiX Dec. 28, 2020, 7 a.m. UTC | #1
Tested-by:  Xie,WeiX < weix.xie@intel.com>

Regards,
Xie Wei


> -----Original Message-----
> From: Xie wei [mailto:weix.xie@intel.com]
> Sent: Monday, December 28, 2020 2:57 PM
> To: dts@dpdk.org
> Cc: Xie, WeiX <weix.xie@intel.com>
> Subject: [dts][PATCH V1 2/2]
> tests/TestSuite_runtime_vf_queue_number_kernel:the queue pairs
> number up to 256 for iavf
diff mbox series

Patch

diff --git a/tests/TestSuite_runtime_vf_queue_number_kernel.py b/tests/TestSuite_runtime_vf_queue_number_kernel.py
index fe4bea07..3daf2347 100644
--- a/tests/TestSuite_runtime_vf_queue_number_kernel.py
+++ b/tests/TestSuite_runtime_vf_queue_number_kernel.py
@@ -204,7 +204,7 @@  class TestRuntimeVfQueueNumberKernel(TestCase):
             self.check_result(nr_queue, out, out2, pkts_num, count, misc)
 
     def test_set_invalid_vf_queue_num_command_line(self):
-        invalid_queue_num = [0, 17]
+        invalid_queue_num = [0, 257]
         for i in invalid_queue_num:
             self.vm0_testpmd = PmdOutput(self.vm_dut_0)
             self.vm_dut_0.session_secondary = self.vm_dut_0.new_session()
@@ -215,7 +215,7 @@  class TestRuntimeVfQueueNumberKernel(TestCase):
                 self.verify('Either rx or tx queues should be non-zero' in out, "queue number can't be zero")
             else:
                 # the dpdk output non-zero conflict with >=0, to be fixed...
-                self.verify('txq 17 invalid - must be >= 0 && <= 16' in out, "queue number is too big")
+                self.verify('txq 257 invalid - must be >= 0 && <= 256' in out, "queue number is too big")
 
     def test_set_valid_vf_queue_num_with_function(self):
         random_queue = random.randint(2, 15)
@@ -270,7 +270,7 @@  class TestRuntimeVfQueueNumberKernel(TestCase):
             self.check_result(nr_queue, out, out2, pkts_num, count, misc)
 
     def test_set_invalid_vf_queue_num_with_testpmd_command(self):
-        invalid_queue_num = [0, 17]
+        invalid_queue_num = [0, 257]
         self.vm0_testpmd = PmdOutput(self.vm_dut_0)
         eal_param = '-w %(vf0)s' % {'vf0': self.vm_dut_0.vm_pci0}
         self.vm0_testpmd.start_testpmd("all", eal_param=eal_param)
@@ -287,7 +287,7 @@  class TestRuntimeVfQueueNumberKernel(TestCase):
                 self.verify('Either rx or tx queues should be non zero' in out, "queue number can't be zero")
             else:
                 out = self.vm0_testpmd.execute_cmd("port config all rxq %s" % i)
-                self.verify("input rxq (17) can't be greater than max_rx_queues (16) of port 0" in out,
+                self.verify("input rxq (257) can't be greater than max_rx_queues (256) of port 0" in out,
                             "queue number is too big")
             self.vm0_testpmd.execute_cmd("clear port stats all")
             time.sleep(1)