[dts] [PATCH V1 1/1] framework/packet: close verbose

yufengmx yufengx.mo at intel.com
Wed Feb 19 08:08:29 CET 2020


close verbose to optimize sendp efficiency.

Signed-off-by: yufengmx <yufengx.mo at 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



More information about the dts mailing list