From: "Li, WenjieX A" <wenjiex.a.li@intel.com>
To: "dts@dpdk.org" <dts@dpdk.org>
Cc: "Li, WenjieX A" <wenjiex.a.li@intel.com>
Subject: Re: [dts] [PATCH V1] tests/enable_package_download_in_ice_driver:add all ports with -w
Date: Mon, 19 Aug 2019 10:17:01 +0000 [thread overview]
Message-ID: <8688172CD5C0B74590FAE19D9579F94B537762CE@SHSMSX103.ccr.corp.intel.com> (raw)
In-Reply-To: <1566241756-5557-1-git-send-email-wenjiex.a.li@intel.com>
Tested-by: Li, WenjieX A <wenjiex.a.li@intel.com>
> -----Original Message-----
> From: Li, WenjieX A
> Sent: Tuesday, August 20, 2019 3:09 AM
> To: dts@dpdk.org
> Cc: Li, WenjieX A <wenjiex.a.li@intel.com>
> Subject: [dts][PATCH V1] tests/enable_package_download_in_ice_driver:add all
> ports with -w
>
> Should add ALL ports with -w parameter.
> If the nic has 4 ports, all ports should be bind with -w; otherwise, the ports will
> be down in testpmd.
>
> Signed-off-by: Wenjie Li <wenjiex.a.li@intel.com>
> ---
> tests/TestSuite_enable_package_download_in_ice_driver.py | 9 +++------
> 1 file changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/tests/TestSuite_enable_package_download_in_ice_driver.py
> b/tests/TestSuite_enable_package_download_in_ice_driver.py
> index 9197198..b225ef3 100644
> --- a/tests/TestSuite_enable_package_download_in_ice_driver.py
> +++ b/tests/TestSuite_enable_package_download_in_ice_driver.py
> @@ -54,9 +54,6 @@ class
> TestEnable_Package_Download_In_Ice_Driver(TestCase):
> self.tester_p0_mac = self.tester.get_mac(localPort0)
> self.dut_testpmd = PmdOutput(self.dut)
>
> - self.dut_p0_pci = self.dut.get_port_pci(self.dut_ports[0])
> - self.dut_p1_pci = self.dut.get_port_pci(self.dut_ports[1])
> -
> self.pkg_file = '/lib/firmware/intel/ice/ddp/ice.pkg'
> out = self.dut.send_expect("ls %s" % self.pkg_file, "#")
> self.verify("No such file or directory" not in out, "Cannot find %s, please
> check you system/driver." % self.pkg_file) @@ -88,10 +85,10 @@ class
> TestEnable_Package_Download_In_Ice_Driver(TestCase):
> self.dut.send_expect("touch %s" % self.pkg_file, "#")
>
> def start_testpmd(self, ice_pkg="true", safe_mode_support="false"):
> + self.eal_param = ""
> if safe_mode_support == "true":
> - self.eal_param="-w %s,safe-mode-support=1 -w %s,safe-mode-
> support=1" % (self.dut_p0_pci, self.dut_p1_pci)
> - else:
> - self.eal_param=""
> + for i in range(len(self.dut_ports)):
> + self.eal_param = self.eal_param + "-w
> + %s,safe-mode-support=1 " % self.dut.ports_info[i]['pci']
> out = self.dut_testpmd.start_testpmd("all", "--nb-cores=8 --rxq=%s --
> txq=%s --port-topology=chained" % (self.PF_QUEUE, self.PF_QUEUE),
> eal_param=self.eal_param)
> if ice_pkg == "false":
> if safe_mode_support == "true":
> --
> 2.17.1
next prev parent reply other threads:[~2019-08-19 10:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-19 19:09 Wenjie Li
2019-08-19 10:17 ` Li, WenjieX A [this message]
2019-08-30 2:57 ` 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=8688172CD5C0B74590FAE19D9579F94B537762CE@SHSMSX103.ccr.corp.intel.com \
--to=wenjiex.a.li@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).