diff options
author | Michael Pedersen <michael.soelvkaer@gmail.com> | 2019-10-21 11:08:56 +0200 |
---|---|---|
committer | Michael Pedersen <michael.soelvkaer@gmail.com> | 2019-10-21 11:08:56 +0200 |
commit | 222ba1e3bc1a2701f15bf077ef63016f980e2b78 (patch) | |
tree | fbaf17a032e65b853eaad074fd0bf2967a2e089a /nfvbench/traffic_gen | |
parent | 98aac3b7ed5060d2e498d4ab545482a525339120 (diff) |
Add support for VXLAN latency
JIRA: NFVBENCH-150
Removes previous limitations added due to missing support for latency with VXLAN offloading in TRex
Signed-off-by: Michael Pedersen <michael.soelvkaer@gmail.com>
Change-Id: I7de5b4d1e338ca3c2f3f3bde456aae0dcabace4d
Diffstat (limited to 'nfvbench/traffic_gen')
-rw-r--r-- | nfvbench/traffic_gen/trex_gen.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/nfvbench/traffic_gen/trex_gen.py b/nfvbench/traffic_gen/trex_gen.py index 036c899..a472774 100644 --- a/nfvbench/traffic_gen/trex_gen.py +++ b/nfvbench/traffic_gen/trex_gen.py @@ -482,10 +482,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) |