From: "Liu, Yong" <yong.liu@intel.com>
To: "Yao, Lei A" <lei.a.yao@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Yao, Lei A" <lei.a.yao@intel.com>
Subject: Re: [dts] [PATCH V3] tests: add test for vhost/virtio loopback performance
Date: Thu, 29 Dec 2016 06:51:39 +0000 [thread overview]
Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62D3515D@SHSMSX103.ccr.corp.intel.com> (raw)
In-Reply-To: <1482988197-20248-1-git-send-email-lei.a.yao@intel.com>
Lei, one comment remaining.
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lei,yao
> Sent: Thursday, December 29, 2016 1:10 PM
> To: dts@dpdk.org
> Cc: Yao, Lei A
> Subject: [dts] [PATCH V3] tests: add test for vhost/virtio loopback
> performance
>
> From: lei yao <lei.a.yao@intel.com>
>
> This test won't use qemu, but will use two testpmd thread to launch vhost-
> user and
> virtio-user to simulate the qemu user case.
>
> Signed-off-by: lei yao <lei.a.yao@intel.com>
> ---
> + # Get the default TX packet size of the testpmd
> + file_path = "/root/dpdk/app/test-pmd/testpmd.h"
> + fp = open(file_path, 'r')
> + out = fp.read()
> + search_result = re.search("TXONLY_DEF_PACKET_LEN\s*(\d*)", out)
> + self.packet_length = search_result.group(1)
> +
We can't assume that dut and tester are using same server and DPDK folder maybe changed by input parameter.
You can do the same thing by some code like below:
out = self.dut.send_expect("cat app/test-pmd/testpmd.h |grep TXONLY_DEF_PACKET_LEN", "# ")
try:
search_result = re.search("#define TXONLY_DEF_PACKET_LEN\s*(\d*)", out)
self.packet_length = search_result.group(1)
except:
self.logger.error("Failed to capture default testpmd txonly packet length")
prev parent reply other threads:[~2016-12-29 6:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-29 5:09 lei,yao
2016-12-29 6:51 ` Liu, Yong [this message]
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=86228AFD5BCD8E4EBFD2B90117B5E81E62D3515D@SHSMSX103.ccr.corp.intel.com \
--to=yong.liu@intel.com \
--cc=dts@dpdk.org \
--cc=lei.a.yao@intel.com \
/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).