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 488EFA0525; Fri, 21 Feb 2020 02:52:04 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3FE2B4C81; Fri, 21 Feb 2020 02:52:04 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 9F2281BF98 for ; Fri, 21 Feb 2020 02:52:02 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Feb 2020 17:52:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,466,1574150400"; d="scan'208";a="254673117" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga002.jf.intel.com with ESMTP; 20 Feb 2020 17:52:01 -0800 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 20 Feb 2020 17:52:01 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 20 Feb 2020 17:52:01 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.222]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.5]) with mapi id 14.03.0439.000; Fri, 21 Feb 2020 09:51:58 +0800 From: "Tu, Lijuan" To: "Mo, YufengX" , "dts@dpdk.org" Thread-Topic: [dts][PATCH V1 1/1] framework/packet: close verbose Thread-Index: AQHV5vL6vSJvfKPYiEWL60bjA9lYRagk5Rcw Date: Fri, 21 Feb 2020 01:51:58 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBCC815@SHSMSX101.ccr.corp.intel.com> References: <20200219070829.25427-1-yufengx.mo@intel.com> <20200219070829.25427-2-yufengx.mo@intel.com> In-Reply-To: <20200219070829.25427-2-yufengx.mo@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="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 1/1] framework/packet: close verbose 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: Mo, YufengX > Sent: Wednesday, February 19, 2020 3:08 PM > To: dts@dpdk.org; Tu, Lijuan > Cc: Mo, YufengX > Subject: [dts][PATCH V1 1/1] framework/packet: close verbose >=20 >=20 > close verbose to optimize sendp efficiency. >=20 > Signed-off-by: yufengmx > --- > framework/packet.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 =3D> 1= 00644 > framework/packet.py >=20 > diff --git a/framework/packet.py b/framework/packet.py old mode 100755 > new mode 100644 index 9144731..085acbc > --- a/framework/packet.py > +++ b/framework/packet.py > @@ -656,7 +656,7 @@ class Packet(object): > pcap_file =3D 'scapy_{}.pcap'.format(tx_port) + time_stamp > self.save_pcapfile(crb, pcap_file) > scapy_cmd =3D 'scapy_{}.cmd'.format(tx_port) + time_stamp > - cmd_str =3D 'from scapy.all import *\np=3Drdpcap("%s")\nprint("p= acket > ready for sending...")\nfor i in p:\n\tprint(i.command())\nsendp(p, > iface=3D"%s", count=3D%d, loop=3D%d, inter=3D%0.3f)' % ( > + cmd_str =3D 'from scapy.all import > + *\np=3Drdpcap("%s")\nprint("packet ready for sending...")\nfor i in > + p:\n\tprint(i.command())\nsendp(p, iface=3D"%s", count=3D%d, loop=3D%d, > + inter=3D%0.3f, verboase=3DFalse)' % ( > crb.tmp_file + pcap_file, tx_port, count, loop, inter) > # write send cmd file to local tmp directory then copy to remote= tester > tmp folder > with open(TMP_PATH + scapy_cmd, 'w') as f: > -- > 2.21.0