summaryrefslogtreecommitdiff
path: root/python/vyos/configdict.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2024-03-30 15:29:59 +0000
committerDaniil Baturin <daniil@baturin.org>2024-03-30 15:29:59 +0000
commit6927c0b622c8feaece907944bae3d4724f1e55a0 (patch)
treeef6c6140587b4975ddb5b61e50e7bc5b93a0dce8 /python/vyos/configdict.py
parenta95063831f83dcfe458691b86407b70107b700ad (diff)
downloadvyos-1x-6927c0b622c8feaece907944bae3d4724f1e55a0.tar.gz
vyos-1x-6927c0b622c8feaece907944bae3d4724f1e55a0.zip
accel-ppp: T6187: use correct CPU counts adjusted for SMT
Diffstat (limited to 'python/vyos/configdict.py')
-rw-r--r--python/vyos/configdict.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py
index 4111d7271..cb9f0cbb8 100644
--- a/python/vyos/configdict.py
+++ b/python/vyos/configdict.py
@@ -633,7 +633,7 @@ def get_accel_dict(config, base, chap_secrets, with_pki=False):
Return a dictionary with the necessary interface config keys.
"""
- from vyos.utils.system import get_half_cpus
+ from vyos.cpu import get_core_count
from vyos.template import is_ipv4
dict = config.get_config_dict(base, key_mangling=('-', '_'),
@@ -643,7 +643,7 @@ def get_accel_dict(config, base, chap_secrets, with_pki=False):
with_pki=with_pki)
# set CPUs cores to process requests
- dict.update({'thread_count' : get_half_cpus()})
+ dict.update({'thread_count' : get_core_count()})
# we need to store the path to the secrets file
dict.update({'chap_secrets_file' : chap_secrets})