From: yufengmx <yufengx.mo@intel.com>
To: dts@dpdk.org, lijuan.tu@intel.com
Cc: yufengmx <yufengx.mo@intel.com>
Subject: [dts] [PATCH V1 1/1] framework/packet: close verbose
Date: Wed, 19 Feb 2020 15:08:29 +0800 [thread overview]
Message-ID: <20200219070829.25427-2-yufengx.mo@intel.com> (raw)
In-Reply-To: <20200219070829.25427-1-yufengx.mo@intel.com>
close verbose to optimize sendp efficiency.
Signed-off-by: yufengmx <yufengx.mo@intel.com>
---
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
next prev parent reply other threads:[~2020-02-19 7:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-19 7:08 [dts] [PATCH V1 0/1] " yufengmx
2020-02-19 7:08 ` yufengmx [this message]
2020-02-21 1:51 ` [dts] [PATCH V1 1/1] " Tu, Lijuan
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=20200219070829.25427-2-yufengx.mo@intel.com \
--to=yufengx.mo@intel.com \
--cc=dts@dpdk.org \
--cc=lijuan.tu@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).