test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Xiao, QimaiX" <qimaix.xiao@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Xiao, QimaiX" <qimaix.xiao@intel.com>
Subject: Re: [dts] [PATCH V1]vhost_dequeue_zero_copy: add --single-file-segments	param for 2M ENV
Date: Fri, 17 Apr 2020 09:04:52 +0000	[thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC0BEA4@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1586250880-330597-1-git-send-email-qimaix.xiao@intel.com>

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai
> Sent: Tuesday, April 7, 2020 5:15 PM
> To: dts@dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao@intel.com>
> Subject: [dts] [PATCH V1]vhost_dequeue_zero_copy: add --single-file-
> segments param for 2M ENV
> 
> Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
> ---
>  tests/TestSuite_vhost_dequeue_zero_copy.py | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/tests/TestSuite_vhost_dequeue_zero_copy.py
> b/tests/TestSuite_vhost_dequeue_zero_copy.py
> index f426fe3..e13e385 100644
> --- a/tests/TestSuite_vhost_dequeue_zero_copy.py
> +++ b/tests/TestSuite_vhost_dequeue_zero_copy.py
> @@ -91,6 +91,11 @@ class TestVhostDequeueZeroCopy(TestCase):
>          self.vm_dut = None
>          self.big_pkt_record = {}
> 
> +    @property
> +    def check_2M_env(self):
> +        out = self.dut.send_expect("cat /proc/meminfo |grep
> Hugepagesize|awk '{print($2)}'", "# ")
> +        return True if out == '2048' else False
> +
>      def get_core_list(self):
>          """
>          check whether the server has enough cores to run case @@ -150,6
> +155,8 @@ class TestVhostDequeueZeroCopy(TestCase):
>          para = " -- -i --tx-offloads=0x0 --nb-cores=%d --txd=1024 --rxd=1024" %
> self.nb_cores
>          eal_params =
> self.dut.create_eal_parameters(cores=core_list[len(self.core_list):],
>                          prefix='virtio', no_pci=True)
> +        if self.check_2M_env:
> +            eal_params += " --single-file-segments"
>          command_line = testcmd + eal_params + vdev + para
>          self.virtio_user.send_expect(command_line, 'testpmd> ', 120)
>          self.virtio_user.send_expect('set fwd mac', 'testpmd> ', 120)
> --
> 1.8.3.1


      parent reply	other threads:[~2020-04-17  9:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-07  9:14 Xiao Qimai
2020-04-07  9:20 ` Xiao, QimaiX
2020-04-17  9:04 ` Tu, Lijuan [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=8CE3E05A3F976642AAB0F4675D0AD20E0BC0BEA4@SHSMSX101.ccr.corp.intel.com \
    --to=lijuan.tu@intel.com \
    --cc=dts@dpdk.org \
    --cc=qimaix.xiao@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).