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: vhost_dequeue_zero_copy	need run with igb_uio driver
Date: Thu, 23 Apr 2020 05:54:02 +0000	[thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC0F220@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1587550284-401403-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: Wednesday, April 22, 2020 6:11 PM
> To: dts@dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao@intel.com>
> Subject: [dts] [PATCH V1]vhost_dequeue_zero_copy:
> vhost_dequeue_zero_copy need run with igb_uio driver
> 
> *. change nic driver to igb_uio for this test
> 
> 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 e13e385..8fca47a 100644
> --- a/tests/TestSuite_vhost_dequeue_zero_copy.py
> +++ b/tests/TestSuite_vhost_dequeue_zero_copy.py
> @@ -60,6 +60,11 @@ class TestVhostDequeueZeroCopy(TestCase):
>          self.frame_sizes = [64, 128, 256, 512, 1024, 1518]
>          self.dut_ports = self.dut.get_ports()
>          self.verify(len(self.dut_ports) >= 1, "Insufficient ports for testing")
> +        self.def_driver =
> self.dut.ports_info[self.dut_ports[0]]["port"].get_nic_driver()
> +        if self.def_driver != "igb_uio":
> +            self.dut.setup_modules_linux(self.target, 'igb_uio', '')
> +            self.dut.bind_interfaces_linux('igb_uio', nics_to_bind=self.dut_ports)
> +            self.driver_chg = True
>          self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])
>          self.dst_mac = self.dut.get_mac_address(self.dut_ports[0])
>          self.tx_port = self.tester.get_local_port(self.dut_ports[0])
> @@ -504,5 +509,7 @@ class TestVhostDequeueZeroCopy(TestCase):
>          """
>          Run after each test suite.
>          """
> +        if getattr(self, "driver_chg", None):
> +            self.dut.bind_interfaces_linux(self.def_driver,
> nics_to_bind=self.dut_ports)
>          if getattr(self, 'vhost_user', None):
>              self.dut.close_session(self.vhost_user)
> --
> 1.8.3.1


      parent reply	other threads:[~2020-04-23  5:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-22 10:11 Xiao Qimai
2020-04-23  1:27 ` Han, YingyaX
2020-04-23  5:54 ` 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=8CE3E05A3F976642AAB0F4675D0AD20E0BC0F220@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).