From 8acd03e5c7b9ecd7898b6bcf0bc4797942ba0277 Mon Sep 17 00:00:00 2001 From: Luc Provoost Date: Mon, 26 Jun 2023 13:28:25 +0200 Subject: [PATCH] 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 Change-Id: Iee04e54f059732a40ebdc7635dbd09631b5f2081 --- VNFs/DPPD-PROX/helper-scripts/rapid/rapid_machine.py | 5 +++-- 1 file 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: -- 2.16.6