From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Lu, Nannan" <nannan.lu@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Lu, Nannan" <nannan.lu@intel.com>
Subject: Re: [dts] [PATCH V1] tests: Optimize the send_and_check_packets function of cvl_switch_filter
Date: Fri, 24 Jul 2020 02:30:15 +0000 [thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC8401D@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1595196144-360850-1-git-send-email-nannan.lu@intel.com>
Applied, thanks
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Nannan Lu
> Sent: 2020年7月20日 6:02
> To: dts@dpdk.org
> Cc: Lu, Nannan <nannan.lu@intel.com>
> Subject: [dts] [PATCH V1] tests: Optimize the send_and_check_packets function
> of cvl_switch_filter
>
> Optimize the send_and_check_packets function of
> TestSuite_cvl_switch_filter.py to increase the speed of sending packets.
>
> Signed-off-by: Nannan Lu <nannan.lu@intel.com>
> ---
> tests/TestSuite_cvl_switch_filter.py | 12 ++++--------
> 1 file changed, 4 insertions(+), 8 deletions(-)
>
> diff --git a/tests/TestSuite_cvl_switch_filter.py
> b/tests/TestSuite_cvl_switch_filter.py
> index dc54fe7..01a2842 100644
> --- a/tests/TestSuite_cvl_switch_filter.py
> +++ b/tests/TestSuite_cvl_switch_filter.py
> @@ -2559,17 +2559,13 @@ class SwitchFilterTest(TestCase):
> """
> #Specify the port to use
> dic["check_func"]["param"]["expect_port"] = port
> -
> self.dut.send_expect("start", "testpmd> ", 15)
> time.sleep(2)
> -
> #send packets
> - for per_packet in dic["scapy_str"]:
> - pkt = Packet(pkt_str=per_packet)
> - pkt.send_pkt(self.tester, tx_port=self.__tx_iface, count=1)
> -
> - out = self.dut.send_expect("stop", "testpmd> ")
> -
> + self.pkt.update_pkt(dic["scapy_str"])
> + self.pkt.send_pkt(self.tester, tx_port=self.__tx_iface, count=1,
> timeout=370)
> + time.sleep(3)
> + out = self.dut.send_expect("stop", "testpmd> ", 15)
> result_flag, log_msg = dic["check_func"]["func"](out,
> dic["check_func"]["param"], dic["expect_results"])
> return result_flag, log_msg
>
> --
> 2.25.1
prev parent reply other threads:[~2020-07-24 2:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-19 22:02 Nannan Lu
2020-07-24 2:30 ` 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=8CE3E05A3F976642AAB0F4675D0AD20E0BC8401D@SHSMSX101.ccr.corp.intel.com \
--to=lijuan.tu@intel.com \
--cc=dts@dpdk.org \
--cc=nannan.lu@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).