Code Review
/
csit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e36da34
)
fix(core): dual_socket support
86/38886/1
author
pmikus
<
[email protected]
>
Thu, 25 May 2023 08:49:39 +0000
(08:49 +0000)
committer
Peter Mikus
<
[email protected]
>
Thu, 25 May 2023 08:50:44 +0000
(08:50 +0000)
Signed-off-by: pmikus <
[email protected]
>
Change-Id: I881dda8b2fec32b8f489ec97df6592937f6193fa
(cherry picked from commit
889af5ca17aa11ccaa65fce188f72890e495cfa2
)
resources/libraries/python/TRexConfigGenerator.py
patch
|
blob
|
history
diff --git
a/resources/libraries/python/TRexConfigGenerator.py
b/resources/libraries/python/TRexConfigGenerator.py
index
2015b09
..
5ecde86
100644
(file)
--- 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}"
)