aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pkt_gen/xena
diff options
context:
space:
mode:
authorChristian Trautman <ctrautma@redhat.com>2017-05-25 10:43:34 -0400
committerChristian Trautman <ctrautma@redhat.com>2017-05-25 10:43:34 -0400
commit8d528f2b4c66d94ea8760053f9bc75c595630056 (patch)
tree03941b99065981ca644fe885bf0fd7847eacb363 /tools/pkt_gen/xena
parente71e24ec001cfc06e27ce12c081ba749948b4599 (diff)
xena_cont_bug_fix: Fix duration issue
Port duration is in microseconds. I broke this with a previous commit. Change-Id: Id2770149355f40107ab8ee0523482b5867e0e72a Signed-off-by: Christian Trautman <ctrautma@redhat.com>
Diffstat (limited to 'tools/pkt_gen/xena')
-rwxr-xr-xtools/pkt_gen/xena/xena.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pkt_gen/xena/xena.py b/tools/pkt_gen/xena/xena.py
index 31347c5f..b72a59dd 100755
--- a/tools/pkt_gen/xena/xena.py
+++ b/tools/pkt_gen/xena/xena.py
@@ -448,7 +448,7 @@ class Xena(ITrafficGenerator):
self._params['traffic']['l2']['framesize'])
stream.set_packet_payload('incrementing', '0x00')
stream.set_payload_id(payload_id)
- port.set_port_time_limit(self._duration)
+ port.set_port_time_limit(self._duration * 1000000)
if self._params['traffic']['l2']['framesize'] == 64:
# set micro tpld