From: "Liu, Yong" <yong.liu@intel.com>
To: Herbert Guan <herbert.guan@arm.com>, "dts@dpdk.org" <dts@dpdk.org>
Subject: Re: [dts] [PATCH v1] tests/vf_packet_rxtx: fix test case failures in vf_reset
Date: Fri, 2 Mar 2018 02:07:30 +0000 [thread overview]
Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62FA5E0C@SHSMSX103.ccr.corp.intel.com> (raw)
In-Reply-To: <1518589716-27299-1-git-send-email-herbert.guan@arm.com>
Hi Herbert,
Why required driver is not insmod be previous setup?
As one principle, we want to limit the influence of environment change in the suite.
Thanks,
Marvin
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Herbert Guan
> Sent: Wednesday, February 14, 2018 2:29 PM
> To: dts@dpdk.org
> Cc: Herbert Guan <herbert.guan@arm.com>
> Subject: [dts] [PATCH v1] tests/vf_packet_rxtx: fix test case failures in
> vf_reset
>
> 1) Clear port stats before send/recv test packets
> 2) Ensure igb_uio driver is installed if driver='igb_uio'
>
>
> Signed-off-by: Herbert Guan <herbert.guan@arm.com>
> ---
> tests/TestSuite_vf_packet_rxtx.py | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/tests/TestSuite_vf_packet_rxtx.py
> b/tests/TestSuite_vf_packet_rxtx.py
> index 63f4820..f0b7721 100644
> --- a/tests/TestSuite_vf_packet_rxtx.py
> +++ b/tests/TestSuite_vf_packet_rxtx.py
> @@ -125,6 +125,9 @@ class TestVfPacketRxtx(TestCase):
> def packet_rx_tx(self, driver='default'):
>
> if driver == 'igb_uio':
> + # ensure igb_uio driver is installed
> + self.dut.send_expect('(lsmod | grep uio) || (modprobe uio)',
> '#')
> + self.dut.send_expect('(lsmod | grep igb_uio) ||
> (insmod ./%s/kmod/igb_uio.ko)' % self.target,'#')
> self.setup_2pf_2vf_1vm_env(driver='igb_uio')
> else:
> self.setup_2pf_2vf_1vm_env(driver='')
> @@ -279,6 +282,7 @@ class TestVfPacketRxtx(TestCase):
> rx_port = tx_port
>
> dst_mac = pmd0_vf0_mac
> + self.vm0_testpmd.execute_cmd('clear port stats all')
> self.tester.sendpkt_bg(tx_port, dst_mac)
>
> #vf port stop/start can trigger reset action
> --
> 1.8.3.1
next prev parent reply other threads:[~2018-03-02 2:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-14 6:28 Herbert Guan
2018-03-02 2:07 ` Liu, Yong [this message]
2018-03-02 6:57 ` Herbert Guan
2018-03-02 8:00 ` Liu, Yong
2018-03-05 2:14 ` Herbert Guan
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=86228AFD5BCD8E4EBFD2B90117B5E81E62FA5E0C@SHSMSX103.ccr.corp.intel.com \
--to=yong.liu@intel.com \
--cc=dts@dpdk.org \
--cc=herbert.guan@arm.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).