[dts] [PATCH] dynamic_queue.py: Adding max_pools parameter for cavium_a063

nareddy at marvell.com nareddy at marvell.com
Tue Apr 23 14:33:58 CEST 2019


From: Praneeth Reddy <nareddy at marvell.com>

With cavium_a063, to allocate dynamic queues max_pools parameter is required in testpmd application.

Signed-off-by: Praneeth Reddy <nareddy at marvell.com>
---
 tests/TestSuite_dynamic_queue.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/TestSuite_dynamic_queue.py b/tests/TestSuite_dynamic_queue.py
index 8e3fdb9..3aad63f 100644
--- a/tests/TestSuite_dynamic_queue.py
+++ b/tests/TestSuite_dynamic_queue.py
@@ -33,6 +33,13 @@ class TestDynamicQueue(TestCase):
                 "Default", "--port-topology=chained --txq=%s --rxq=%s"
                 % (self.PF_QUEUE, self.PF_QUEUE), eal_param="-w %s"
                 % (self.dut.get_port_pci(self.dut_ports[0])))
+        elif (self.nic in ["cavium_a063"]):
+            eal_opts = ""
+            for port in self.dut_ports:
+                eal_opts += "-w %s,max_pools=256 "%(self.dut.get_port_pci(self.dut_ports[port]))
+            self.dut_testpmd.start_testpmd(
+                "Default", "--port-topology=chained --txq=%s --rxq=%s"
+                % (self.PF_QUEUE, self.PF_QUEUE), eal_param = eal_opts)
         else:
             self.dut_testpmd.start_testpmd(
                 "Default", "--port-topology=chained --txq=%s --rxq=%s"
-- 
1.8.3.1



More information about the dts mailing list