Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
feat(hoststack): Apply no-muti-seg
[csit.git]
/
resources
/
libraries
/
python
/
CpuUtils.py
diff --git
a/resources/libraries/python/CpuUtils.py
b/resources/libraries/python/CpuUtils.py
index
7840b5f
..
c77d0f8
100644
(file)
--- a/
resources/libraries/python/CpuUtils.py
+++ b/
resources/libraries/python/CpuUtils.py
@@
-524,15
+524,15
@@
class CpuUtils:
continue
# Number of Data Plane physical cores.
dp_cores_count = BuiltIn().get_variable_value(
continue
# Number of Data Plane physical cores.
dp_cores_count = BuiltIn().get_variable_value(
- "${
{dp_cores_count}
}", phy_cores
+ "${
dp_cores_count
}", phy_cores
)
# Number of Feature Plane physical cores.
fp_cores_count = BuiltIn().get_variable_value(
)
# Number of Feature Plane physical cores.
fp_cores_count = BuiltIn().get_variable_value(
- "${
{fp_cores_count}
}", phy_cores - dp_cores_count
+ "${
fp_cores_count
}", phy_cores - dp_cores_count
)
# Ratio between RX queues and data plane threads.
rxq_ratio = BuiltIn().get_variable_value(
)
# Ratio between RX queues and data plane threads.
rxq_ratio = BuiltIn().get_variable_value(
- "${
{rxq_ratio}
}", 1
+ "${
rxq_ratio
}", 1
)
dut_pf_keys = BuiltIn().get_variable_value(
)
dut_pf_keys = BuiltIn().get_variable_value(
@@
-540,7
+540,7
@@
class CpuUtils:
)
# SMT override in case of non standard test cases.
smt_used = BuiltIn().get_variable_value(
)
# SMT override in case of non standard test cases.
smt_used = BuiltIn().get_variable_value(
- "${
{smt_used}
}", CpuUtils.is_smt_enabled(node["cpuinfo"])
+ "${
smt_used
}", CpuUtils.is_smt_enabled(node["cpuinfo"])
)
cpu_node = Topology.get_interfaces_numa_node(node, *dut_pf_keys)
)
cpu_node = Topology.get_interfaces_numa_node(node, *dut_pf_keys)