[dts] [PATCH 6/9] framework: fix get_core_list to return all lcores
Gowrishankar
gowrishankar.m at linux.vnet.ibm.com
Fri Feb 26 11:17:11 CET 2016
From: Gowri Shankar <gowrishankar.m at linux.vnet.ibm.com>
Irrespective of whether threading is enabled or not, "all" option to get_core_
list should return all available lcores. Current "th" option breaks the test
on loading PMD on an unavailable lcore because cpu core ranges is returned.
Signed-off-by: Gowrishankar <gowrishankar.m at linux.vnet.ibm.com>
---
framework/crb.py | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/framework/crb.py b/framework/crb.py
index 453796f..33ceb8c 100644
--- a/framework/crb.py
+++ b/framework/crb.py
@@ -574,17 +574,13 @@ class Crb(object):
# return thread list
return map(str, thread_list)
- def get_core_list(self, config, th=False, socket=-1):
+ def get_core_list(self, config, socket=-1):
"""
Get lcore array according to the core config like "all", "1S/1C/1T".
We can specify the physical CPU socket by paramter "socket".
"""
if config == 'all':
-
- if th:
- return [n['thread'] for n in self.cores]
- else:
- return [n for n in range(0, self.number_of_cores - 1)]
+ return [n['thread'] for n in self.cores]
m = re.match("([1234])S/([1-9]+)C/([12])T", config)
--
1.7.10.4
More information about the dts
mailing list