From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Zhao, XinfengX" <xinfengx.zhao@intel.com>,
"dts@dpdk.org" <dts@dpdk.org>
Cc: "Zhao, XinfengX" <xinfengx.zhao@intel.com>
Subject: Re: [dts] [PATCH] tests: fix device link down failed in pmd_bonded
Date: Fri, 20 Sep 2019 06:16:00 +0000 [thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB24AA3@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1568161781-19723-1-git-send-email-xinfengx.zhao@intel.com>
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xinfeng Zhao
> Sent: Wednesday, September 11, 2019 8:30 AM
> To: dts@dpdk.org
> Cc: Zhao, XinfengX <xinfengx.zhao@intel.com>
> Subject: [dts] [PATCH] tests: fix device link down failed in pmd_bonded
>
> Signed-off-by: Xinfeng Zhao <xinfengx.zhao@intel.com>
> ---
> tests/TestSuite_pmd_bonded.py | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/tests/TestSuite_pmd_bonded.py
> b/tests/TestSuite_pmd_bonded.py index 9ae6d32..f0c39d8 100644
> --- a/tests/TestSuite_pmd_bonded.py
> +++ b/tests/TestSuite_pmd_bonded.py
> @@ -806,6 +806,14 @@ UDP(sport=srcport,
> dport=destport)/Raw(load="\x50"*%s)], iface="%s", count=%d)'
>
> self.tester_bond = "bond0"
>
> + for port in self.dut_ports:
> + tester_port = self.tester.get_local_port(port)
> + intf = self.tester.get_interface(tester_port)
> + driver = self.tester.ports_info[tester_port]['port'].get_nic_driver()
> + if driver == "i40e":
> + self.tester.send_expect("ethtool --set-priv-flags %s link-down-on-
> close on"
> + % intf, "# ", 10)
> +
> def set_up(self):
> """
> Run before each test case.
> --
> 2.17.1
prev parent reply other threads:[~2019-09-20 6:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-11 0:29 Xinfeng Zhao
2019-09-11 8:38 ` Zhao, XinfengX
2019-09-20 6:16 ` 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=8CE3E05A3F976642AAB0F4675D0AD20E0BB24AA3@SHSMSX101.ccr.corp.intel.com \
--to=lijuan.tu@intel.com \
--cc=dts@dpdk.org \
--cc=xinfengx.zhao@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).