summaryrefslogtreecommitdiffstats
path: root/VNFs
diff options
context:
space:
mode:
authorLuc Provoost <luc.provoost@gmail.com>2023-06-26 13:28:25 +0200
committerLuc Provoost <luc.provoost@gmail.com>2023-06-26 11:33:29 +0000
commit8acd03e5c7b9ecd7898b6bcf0bc4797942ba0277 (patch)
treebfa356d4e497a6141e09b3c7c96dca1e6214ae69 /VNFs
parentb2d15e35bc01335145a561db896172325e48fccf (diff)
Add uuid to DPDK file-prefix
When running multiple pods, the DPDK file-prefix needs to be unique, so a uuid was added to the file-prefix. This parameter is then available in the parameters.lua file. The eal parameter for setting the simd bitwidth was also added. Signed-off-by: Luc Provoost <luc.provoost@gmail.com> Change-Id: Iee04e54f059732a40ebdc7635dbd09631b5f2081
Diffstat (limited to 'VNFs')
-rw-r--r--VNFs/DPPD-PROX/helper-scripts/rapid/rapid_machine.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_machine.py b/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_machine.py
index 80c8793c..5430d2ec 100644
--- a/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_machine.py
+++ b/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_machine.py
@@ -20,6 +20,7 @@ from rapid_log import RapidLog
from prox_ctrl import prox_ctrl
import os
import re
+import uuid
class RapidMachine(object):
"""
@@ -156,8 +157,8 @@ class RapidMachine(object):
allow_parameter = 'allow'
else:
allow_parameter = 'pci-whitelist'
- eal_line = 'eal=\"--file-prefix {} --{} {}\"\n'.format(
- self.name, allow_parameter,
+ eal_line = 'eal=\"--file-prefix {}{} --{} {} --force-max-simd-bitwidth=512'.format(
+ self.name, str(uuid.uuid4()), allow_parameter,
self.machine_params['dp_pci_dev'])
LuaFile.write(eal_line)
else: