From: lihong <lihongx.ma@intel.com>
To: dts@dpdk.org
Cc: lihong <lihongx.ma@intel.com>
Subject: [dts] [PATCH V1] tests/vhost_virtio_user_interrupt: optimization code
Date: Tue, 13 Aug 2019 08:10:01 +0800 [thread overview]
Message-ID: <1565655001-32368-1-git-send-email-lihongx.ma@intel.com> (raw)
1. flush buffer before launch l3fwd-power
2. add -w param when start testpmd
Signed-off-by: lihong <lihongx.ma@intel.com>
---
tests/TestSuite_vhost_virtio_user_interrupt.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_vhost_virtio_user_interrupt.py b/tests/TestSuite_vhost_virtio_user_interrupt.py
index 6713590..5422e04 100644
--- a/tests/TestSuite_vhost_virtio_user_interrupt.py
+++ b/tests/TestSuite_vhost_virtio_user_interrupt.py
@@ -96,6 +96,7 @@ class TestVirtioUserInterrupt(TestCase):
" -P --config='(0,0,%s)' --parse-ptype "
cmd_l3fwd = cmd_l3fwd % (self.mem_channel, self.core_mask_l3fwd,
path, self.core_interrupt)
+ self.l3fwd.get_session_before(timeout=2)
self.l3fwd.send_expect(cmd_l3fwd, "POWER", 40)
time.sleep(10)
out = self.l3fwd.get_session_before()
@@ -108,6 +109,9 @@ class TestVirtioUserInterrupt(TestCase):
"""
start testpmd on vhost side
"""
+ if len(pci) == 0:
+ pci_info = self.dut.ports_info[self.dut_ports[0]]['pci']
+ pci = '-w %s' % pci_info
cmd_vhost_user = self.dut.target + "/app/testpmd -n %d -c %s " + \
"--socket-mem 1024,1024 --legacy-mem %s " + \
"--file-prefix=vhost " + \
@@ -143,8 +147,8 @@ class TestVirtioUserInterrupt(TestCase):
elif status == "sleeps":
info = "lcore %s sleeps until interrupt triggers"
info = info % self.core_interrupt
- self.logger.info(info)
self.verify(info in out, "The CPU status not right for %s" % info)
+ self.logger.info(info)
def check_virtio_side_link_status(self, status):
out = self.virtio.send_expect("show port info 0", "testpmd> ", 20)
--
2.7.4
next reply other threads:[~2019-08-13 7:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-13 0:10 lihong [this message]
2019-08-14 2:43 ` Wang, Yinan
2019-08-28 5:56 ` 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=1565655001-32368-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).