From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9C7E5A0518; Fri, 24 Jul 2020 04:30:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 87E691D455; Fri, 24 Jul 2020 04:30:28 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 219B31D452 for ; Fri, 24 Jul 2020 04:30:26 +0200 (CEST) IronPort-SDR: /9QlnMXq1lFKxxA255j6EW1COu920q7JlIZHFi8WQfyerNOCUvE9cfl7FRuL6XombZxLaylsXQ gS5Sl6H01dyg== X-IronPort-AV: E=McAfee;i="6000,8403,9691"; a="215241011" X-IronPort-AV: E=Sophos;i="5.75,389,1589266800"; d="scan'208";a="215241011" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2020 19:30:24 -0700 IronPort-SDR: X/ThUMmDxm0mICOTD5V485h+9osJLibhN0FqY+gpViiluPx3AsGTDUTnGB/bg02fZL5zzH3/ip 67EXoxX8ma9Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,389,1589266800"; d="scan'208";a="488584247" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga006.fm.intel.com with ESMTP; 23 Jul 2020 19:30:24 -0700 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 23 Jul 2020 19:30:24 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 23 Jul 2020 19:30:24 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.22]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.250]) with mapi id 14.03.0439.000; Fri, 24 Jul 2020 10:30:16 +0800 From: "Tu, Lijuan" To: "Lu, Nannan" , "dts@dpdk.org" CC: "Lu, Nannan" Thread-Topic: [dts] [PATCH V1] tests: Optimize the send_and_check_packets function of cvl_switch_filter Thread-Index: AQHWXc3rhhm+68e/40eJvV53n7LRdqkWCRTQ Date: Fri, 24 Jul 2020 02:30:15 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC8401D@SHSMSX101.ccr.corp.intel.com> References: <1595196144-360850-1-git-send-email-nannan.lu@intel.com> In-Reply-To: <1595196144-360850-1-git-send-email-nannan.lu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests: Optimize the send_and_check_packets function of cvl_switch_filter X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Applied, thanks > -----Original Message----- > From: dts On Behalf Of Nannan Lu > Sent: 2020=1B$BG/=1B(B7=1B$B7n=1B(B20=1B$BF|=1B(B 6:02 > To: dts@dpdk.org > Cc: Lu, Nannan > Subject: [dts] [PATCH V1] tests: Optimize the send_and_check_packets func= tion > of cvl_switch_filter >=20 > Optimize the send_and_check_packets function of > TestSuite_cvl_switch_filter.py to increase the speed of sending packets. >=20 > Signed-off-by: Nannan Lu > --- > tests/TestSuite_cvl_switch_filter.py | 12 ++++-------- > 1 file changed, 4 insertions(+), 8 deletions(-) >=20 > 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"] =3D port > - > self.dut.send_expect("start", "testpmd> ", 15) > time.sleep(2) > - > #send packets > - for per_packet in dic["scapy_str"]: > - pkt =3D Packet(pkt_str=3Dper_packet) > - pkt.send_pkt(self.tester, tx_port=3Dself.__tx_iface, count= =3D1) > - > - out =3D self.dut.send_expect("stop", "testpmd> ") > - > + self.pkt.update_pkt(dic["scapy_str"]) > + self.pkt.send_pkt(self.tester, tx_port=3Dself.__tx_iface, count= =3D1, > timeout=3D370) > + time.sleep(3) > + out =3D self.dut.send_expect("stop", "testpmd> ", 15) > result_flag, log_msg =3D dic["check_func"]["func"](out, > dic["check_func"]["param"], dic["expect_results"]) > return result_flag, log_msg >=20 > -- > 2.25.1