aboutsummaryrefslogtreecommitdiffstats
path: root/nfvbench/traffic_gen/trex_gen.py
diff options
context:
space:
mode:
authorAlec Hothan <ahothan@cisco.com>2019-10-23 15:25:43 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-10-23 15:25:43 +0000
commit6d7174208a032de47495e3e687ba25aed8bedb6e (patch)
treeb118979019ac294652d3b993c4a9fb4f586bdee7 /nfvbench/traffic_gen/trex_gen.py
parent97e6de93dc4de1b7724d659c213b5c09a25287d8 (diff)
parent222ba1e3bc1a2701f15bf077ef63016f980e2b78 (diff)
Merge "Add support for VXLAN latency"
Diffstat (limited to 'nfvbench/traffic_gen/trex_gen.py')
-rw-r--r--nfvbench/traffic_gen/trex_gen.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/nfvbench/traffic_gen/trex_gen.py b/nfvbench/traffic_gen/trex_gen.py
index 2f00024..0f51188 100644
--- a/nfvbench/traffic_gen/trex_gen.py
+++ b/nfvbench/traffic_gen/trex_gen.py
@@ -483,10 +483,15 @@ class TRex(AbstractTrafficGenerator):
pkt = self._create_pkt(stream_cfg, 68)
if latency:
- # TRex limitation: VXLAN skip is not supported for latency stream
- streams.append(STLStream(packet=pkt,
- flow_stats=STLFlowLatencyStats(pg_id=lat_pg_id),
- mode=STLTXCont(pps=self.LATENCY_PPS)))
+ if stream_cfg['vxlan'] is True:
+ streams.append(STLStream(packet=pkt,
+ flow_stats=STLFlowLatencyStats(pg_id=lat_pg_id,
+ vxlan=True),
+ mode=STLTXCont(pps=self.LATENCY_PPS)))
+ else:
+ streams.append(STLStream(packet=pkt,
+ flow_stats=STLFlowLatencyStats(pg_id=lat_pg_id),
+ mode=STLTXCont(pps=self.LATENCY_PPS)))
return streams
@timeout(5)