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 5C827A0555; Wed, 19 Feb 2020 08:05:24 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 539081BF7D; Wed, 19 Feb 2020 08:05:24 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 899BE1B13C for ; Wed, 19 Feb 2020 08:05:22 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Feb 2020 23:05:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,459,1574150400"; d="scan'208";a="258824885" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.222]) by fmsmga004.fm.intel.com with ESMTP; 18 Feb 2020 23:05:20 -0800 From: yufengmx To: dts@dpdk.org, lijuan.tu@intel.com Cc: yufengmx Date: Wed, 19 Feb 2020 15:08:29 +0800 Message-Id: <20200219070829.25427-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200219070829.25427-1-yufengx.mo@intel.com> References: <20200219070829.25427-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [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" close verbose to optimize sendp efficiency. Signed-off-by: yufengmx --- framework/packet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 framework/packet.py 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 = 'scapy_{}.pcap'.format(tx_port) + time_stamp self.save_pcapfile(crb, pcap_file) scapy_cmd = 'scapy_{}.cmd'.format(tx_port) + time_stamp - cmd_str = 'from scapy.all import *\np=rdpcap("%s")\nprint("packet ready for sending...")\nfor i in p:\n\tprint(i.command())\nsendp(p, iface="%s", count=%d, loop=%d, inter=%0.3f)' % ( + cmd_str = 'from scapy.all import *\np=rdpcap("%s")\nprint("packet ready for sending...")\nfor i in p:\n\tprint(i.command())\nsendp(p, iface="%s", count=%d, loop=%d, inter=%0.3f, verboase=False)' % ( 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