test suite reviews and discussions
 help / color / mirror / Atom feed
From: lihong <lihongx.ma@intel.com>
To: dts@dpdk.org
Cc: lihong <lihongx.ma@intel.com>
Subject: [dts] [PATCH V1] tests/dynamic_queue: add ringsize condition
Date: Mon,  8 Jul 2019 09:19:29 +0800	[thread overview]
Message-ID: <1562548769-9149-1-git-send-email-lihongx.ma@intel.com> (raw)

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


             reply	other threads:[~2019-07-08  8:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-08  1:19 lihong [this message]
2019-07-10  2:08 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1562548769-9149-1-git-send-email-lihongx.ma@intel.com \
    --to=lihongx.ma@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).