From: Dukai Yuan <dukaix.yuan@intel.com>
To: dts@dpdk.org
Cc: Dukai Yuan <dukaix.yuan@intel.com>
Subject: [dts][PATCH V3] tests/external_mempool_handler: optimize function parameters
Date: Thu, 12 Jan 2023 13:11:03 +0800 [thread overview]
Message-ID: <20230112051103.26612-1-dukaix.yuan@intel.com> (raw)
Currently, using parameter 'interval' by default 0.01 to send packets too fast will cause test failed.
So modify default 'interval=0.01' to 'interval=0.05' to make send packets slowly.
Signed-off-by: Dukai Yuan <dukaix.yuan@intel.com>
---
tests/TestSuite_external_mempool_handler.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_external_mempool_handler.py b/tests/TestSuite_external_mempool_handler.py
index aa22a35a..58971e31 100644
--- a/tests/TestSuite_external_mempool_handler.py
+++ b/tests/TestSuite_external_mempool_handler.py
@@ -63,7 +63,9 @@ class TestExternalMempool(TestCase):
rx_port = self.tester.get_local_port(self.dut_ports[0])
tgen_input.append((tx_port, rx_port))
- result = self.tester.check_random_pkts(tgen_input, allow_miss=False)
+ result = self.tester.check_random_pkts(
+ tgen_input, interval=0.05, allow_miss=False
+ )
self.pmdout.quit()
--
2.17.1
next reply other threads:[~2023-01-12 5:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-12 5:11 Dukai Yuan [this message]
2023-01-13 2:45 ` lijuan.tu
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=20230112051103.26612-1-dukaix.yuan@intel.com \
--to=dukaix.yuan@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).