* [dts] [PATCH V1] tests/dynamic_queue: add ringsize condition
@ 2019-07-08 1:19 lihong
2019-07-10 2:08 ` Tu, Lijuan
0 siblings, 1 reply; 2+ messages in thread
From: lihong @ 2019-07-08 1:19 UTC (permalink / raw)
To: dts; +Cc: lihong
Signed-off-by: lihong <lihongx.ma@intel.com>
---
tests/TestSuite_dynamic_queue.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/TestSuite_dynamic_queue.py b/tests/TestSuite_dynamic_queue.py
index f334a96..b055e5e 100644
--- a/tests/TestSuite_dynamic_queue.py
+++ b/tests/TestSuite_dynamic_queue.py
@@ -104,6 +104,8 @@ class TestDynamicQueue(TestCase):
pattern = "%s([0-9]+)" % qring_strip
qringsize = self.element_strip(out, pattern)
chg_qringsize = qringsize % 1024 + 256
+ if qringsize == 512:
+ chg_qringsize = 256
self.dut_testpmd.execute_cmd(
'port config 0 rxq %d ring_size %d'
% (queue[i], chg_qringsize))
@@ -155,6 +157,8 @@ class TestDynamicQueue(TestCase):
"Fail to stop txq at runtime")
if chgflag == 1:
chg_qringsize = qringsize % 1024 + 256
+ if qringsize == 512:
+ chg_qringsize = 256
self.dut_testpmd.execute_cmd(
'port config 0 txq %d ring_size %d'
% (queue, chg_qringsize))
--
2.7.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH V1] tests/dynamic_queue: add ringsize condition
2019-07-08 1:19 [dts] [PATCH V1] tests/dynamic_queue: add ringsize condition lihong
@ 2019-07-10 2:08 ` Tu, Lijuan
0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2019-07-10 2:08 UTC (permalink / raw)
To: Ma, LihongX, dts; +Cc: Ma, LihongX
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong
> Sent: Monday, July 8, 2019 9:19 AM
> To: dts@dpdk.org
> Cc: Ma, LihongX <lihongx.ma@intel.com>
> Subject: [dts] [PATCH V1] tests/dynamic_queue: add ringsize condition
>
> Signed-off-by: lihong <lihongx.ma@intel.com>
> ---
> tests/TestSuite_dynamic_queue.py | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/tests/TestSuite_dynamic_queue.py
> b/tests/TestSuite_dynamic_queue.py
> index f334a96..b055e5e 100644
> --- a/tests/TestSuite_dynamic_queue.py
> +++ b/tests/TestSuite_dynamic_queue.py
> @@ -104,6 +104,8 @@ class TestDynamicQueue(TestCase):
> pattern = "%s([0-9]+)" % qring_strip
> qringsize = self.element_strip(out, pattern)
> chg_qringsize = qringsize % 1024 + 256
> + if qringsize == 512:
> + chg_qringsize = 256
> self.dut_testpmd.execute_cmd(
> 'port config 0 rxq %d ring_size %d'
> % (queue[i], chg_qringsize)) @@ -155,6 +157,8 @@ class
> TestDynamicQueue(TestCase):
> "Fail to stop txq at runtime")
> if chgflag == 1:
> chg_qringsize = qringsize % 1024 + 256
> + if qringsize == 512:
> + chg_qringsize = 256
> self.dut_testpmd.execute_cmd(
> 'port config 0 txq %d ring_size %d'
> % (queue, chg_qringsize))
> --
> 2.7.4
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-10 2:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-08 1:19 [dts] [PATCH V1] tests/dynamic_queue: add ringsize condition lihong
2019-07-10 2:08 ` 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).