test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1 0/1] framework/packet: close verbose
@ 2020-02-19  7:08 yufengmx
  2020-02-19  7:08 ` [dts] [PATCH V1 1/1] " yufengmx
  0 siblings, 1 reply; 3+ messages in thread
From: yufengmx @ 2020-02-19  7:08 UTC (permalink / raw)
  To: dts, lijuan.tu; +Cc: yufengmx

close verbose to optimize sendp efficiency. 

yufengmx (1):
  framework/packet: close verbose

 framework/packet.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 mode change 100755 => 100644 framework/packet.py

-- 
2.21.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [dts] [PATCH V1 1/1] framework/packet: close verbose
  2020-02-19  7:08 [dts] [PATCH V1 0/1] framework/packet: close verbose yufengmx
@ 2020-02-19  7:08 ` yufengmx
  2020-02-21  1:51   ` Tu, Lijuan
  0 siblings, 1 reply; 3+ messages in thread
From: yufengmx @ 2020-02-19  7:08 UTC (permalink / raw)
  To: dts, lijuan.tu; +Cc: yufengmx


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1 1/1] framework/packet: close verbose
  2020-02-19  7:08 ` [dts] [PATCH V1 1/1] " yufengmx
@ 2020-02-21  1:51   ` Tu, Lijuan
  0 siblings, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-02-21  1:51 UTC (permalink / raw)
  To: Mo, YufengX, dts

Applied,  thanks

> -----Original Message-----
> From: Mo, YufengX
> Sent: Wednesday, February 19, 2020 3:08 PM
> To: dts@dpdk.org; Tu, Lijuan <lijuan.tu@intel.com>
> Cc: Mo, YufengX <yufengx.mo@intel.com>
> Subject: [dts][PATCH V1 1/1] framework/packet: close verbose
> 
> 
> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-21  1:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-19  7:08 [dts] [PATCH V1 0/1] framework/packet: close verbose yufengmx
2020-02-19  7:08 ` [dts] [PATCH V1 1/1] " yufengmx
2020-02-21  1:51   ` Tu, Lijuan

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).