summaryrefslogtreecommitdiffstats
path: root/nfvbench/traffic_gen
diff options
context:
space:
mode:
authorPierrick Louin <pierrick.louin@orange.com>2019-08-02 15:16:33 +0200
committerfmenguy <francoisregis.menguy@orange.com>2019-10-21 15:07:39 +0200
commit97e6de93dc4de1b7724d659c213b5c09a25287d8 (patch)
treee4de7c8d38766300d38b976877936fa4350eb3c2 /nfvbench/traffic_gen
parent98aac3b7ed5060d2e498d4ab545482a525339120 (diff)
NFVBENCH-146 Add cache_size option
Change-Id: I99c1242198e40bd75cfd013c829d0d24dbafb5d9 Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
Diffstat (limited to 'nfvbench/traffic_gen')
-rw-r--r--nfvbench/traffic_gen/trex_gen.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nfvbench/traffic_gen/trex_gen.py b/nfvbench/traffic_gen/trex_gen.py
index 036c899..2f00024 100644
--- a/nfvbench/traffic_gen/trex_gen.py
+++ b/nfvbench/traffic_gen/trex_gen.py
@@ -422,7 +422,8 @@ class TRex(AbstractTrafficGenerator):
l4_type=CTRexVmInsFixHwCs.L4_TYPE_UDP))
pad = max(0, frame_size - len(pkt_base)) * 'x'
- return STLPktBuilder(pkt=pkt_base / pad, vm=STLScVmRaw(vm_param))
+ return STLPktBuilder(pkt=pkt_base / pad,
+ vm=STLScVmRaw(vm_param, cache_size=int(self.config.cache_size)))
def generate_streams(self, port, chain_id, stream_cfg, l2frame, latency=True,
e2e=False):