aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2023-05-25 08:49:39 +0000
committerpmikus <peter.mikus@protonmail.ch>2023-05-25 08:49:39 +0000
commit889af5ca17aa11ccaa65fce188f72890e495cfa2 (patch)
treeeb6a0f179aa3ff6b618b5b33a9f00a94cdc70712 /resources/libraries/python
parent06d9ceaaffd3183155610a60e4897ebbab64384e (diff)
fix(core): dual_socket support
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I881dda8b2fec32b8f489ec97df6592937f6193fa
Diffstat (limited to 'resources/libraries/python')
-rw-r--r--resources/libraries/python/TRexConfigGenerator.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/libraries/python/TRexConfigGenerator.py b/resources/libraries/python/TRexConfigGenerator.py
index 2015b09ad2..5ecde86dcb 100644
--- a/resources/libraries/python/TRexConfigGenerator.py
+++ b/resources/libraries/python/TRexConfigGenerator.py
@@ -244,7 +244,7 @@ class TrexInitConfig:
latency_thread_id = None
cores = None
limit_memory = f"{Constants.TREX_LIMIT_MEMORY}"
- sockets = 0
+ sockets = list()
for link in tg_topology:
pci_addresses.append(
@@ -264,8 +264,8 @@ class TrexInitConfig:
dst_mac=link["dst_mac"]
)
)
- sockets = sockets | socket
- if sockets:
+ sockets.append(socket)
+ if 0 in sockets and 1 in sockets:
limit_memory = (
f"{Constants.TREX_LIMIT_MEMORY},{Constants.TREX_LIMIT_MEMORY}"
)