Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Latency stream 10k > 9k, min_rate 5k > 10k
[csit.git]
/
resources
/
tools
/
t-rex
/
t-rex-stateless.py
diff --git
a/resources/tools/t-rex/t-rex-stateless.py
b/resources/tools/t-rex/t-rex-stateless.py
index
8a7f34b
..
b23dfa8
100755
(executable)
--- a/
resources/tools/t-rex/t-rex-stateless.py
+++ b/
resources/tools/t-rex/t-rex-stateless.py
@@
-134,19
+134,19
@@
def create_streams_v46(base_pkt_a, base_pkt_b, vm1, vm2, frame_size):
max(0, fsize_no_fcs-len(base_pkt_b))))
lat_stream1 = STLStream(packet=pkt_lat_a,
flow_stats=STLFlowLatencyStats(pg_id=0),
max(0, fsize_no_fcs-len(base_pkt_b))))
lat_stream1 = STLStream(packet=pkt_lat_a,
flow_stats=STLFlowLatencyStats(pg_id=0),
- mode=STLTXCont(pps=
1
000))
+ mode=STLTXCont(pps=
9
000))
# second traffic stream with a phase of 10ns (inter stream gap)
lat_stream2 = STLStream(packet=pkt_lat_b,
isg=10.0,
flow_stats=STLFlowLatencyStats(pg_id=1),
# second traffic stream with a phase of 10ns (inter stream gap)
lat_stream2 = STLStream(packet=pkt_lat_b,
isg=10.0,
flow_stats=STLFlowLatencyStats(pg_id=1),
- mode=STLTXCont(pps=
1
000))
+ mode=STLTXCont(pps=
9
000))
stream1 = STLStream(packet=pkt_a,
stream1 = STLStream(packet=pkt_a,
- mode=STLTXCont(pps=
1
000))
+ mode=STLTXCont(pps=
9
000))
# second traffic stream with a phase of 10ns (inter stream gap)
stream2 = STLStream(packet=pkt_b,
isg=10.0,
# second traffic stream with a phase of 10ns (inter stream gap)
stream2 = STLStream(packet=pkt_b,
isg=10.0,
- mode=STLTXCont(pps=
1
000))
+ mode=STLTXCont(pps=
9
000))
elif type(frame_size) is str:
lat_stream1 = []
lat_stream2 = []
elif type(frame_size) is str:
lat_stream1 = []
lat_stream2 = []
@@
-347,8
+347,8
@@
def simple_burst(stream_a, stream_b, stream_lat_a, stream_lat_b, duration, rate,
total_sent = 0
lost_a = 0
lost_b = 0
total_sent = 0
lost_a = 0
lost_b = 0
- lat_a =
'NA'
- lat_b =
'NA'
+ lat_a =
"0/0/0"
+ lat_b =
"0/0/0"
try:
# turn this off if too many logs
try:
# turn this off if too many logs