xena_cont_bug_fix: Fix duration issue 63/35363/1
authorChristian Trautman <ctrautma@redhat.com>
Thu, 25 May 2017 14:43:34 +0000 (10:43 -0400)
committerChristian Trautman <ctrautma@redhat.com>
Thu, 25 May 2017 14:43:34 +0000 (10:43 -0400)
Port duration is in microseconds. I broke this with a previous
commit.

Change-Id: Id2770149355f40107ab8ee0523482b5867e0e72a
Signed-off-by: Christian Trautman <ctrautma@redhat.com>
tools/pkt_gen/xena/xena.py

index 31347c5..b72a59d 100755 (executable)
@@ -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