Add uuid to DPDK file-prefix 51/74051/2
authorLuc Provoost <luc.provoost@gmail.com>
Mon, 26 Jun 2023 11:28:25 +0000 (13:28 +0200)
committerLuc Provoost <luc.provoost@gmail.com>
Mon, 26 Jun 2023 11:33:29 +0000 (11:33 +0000)
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

VNFs/DPPD-PROX/helper-scripts/rapid/rapid_machine.py

index 80c8793..5430d2e 100644 (file)
@@ -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: