diff options
author | Marvin Liu <yong.liu@intel.com> | 2015-07-16 21:54:47 +0800 |
---|---|---|
committer | Marvin Liu <yong.liu@intel.com> | 2015-07-17 10:49:56 +0800 |
commit | 9e67d33fd9f25c25d6e8919a4b88eef79d8119d7 (patch) | |
tree | f079d9b9711a2559bb66a63e9ef3ed1bba5903e8 | |
parent | 02cd2d8821653be74800d8a6b430466bd8e3a7f0 (diff) | |
download | dts-9e67d33fd9f25c25d6e8919a4b88eef79d8119d7.zip dts-9e67d33fd9f25c25d6e8919a4b88eef79d8119d7.tar.gz dts-9e67d33fd9f25c25d6e8919a4b88eef79d8119d7.tar.xz |
Support start testpmd with assigned core list
Signed-off-by: Marvin Liu <yong.liu@intel.com>
-rw-r--r-- | framework/pmd_output.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/framework/pmd_output.py b/framework/pmd_output.py index 4ccdd0d..23d4c0d 100644 --- a/framework/pmd_output.py +++ b/framework/pmd_output.py @@ -65,17 +65,16 @@ class PmdOutput(): return None else: return int(m.group(2)) - + def set_default_corelist(self): """ set default cores for start testpmd - """ + """ core_number = len(self.dut.cores) if core_number < 2: raise else: self.default_cores = "1S/2C/1T" - def get_pmd_stats(self, portid): stats = {} @@ -105,7 +104,9 @@ class PmdOutput(): if "--txqflags" not in param: param += " --txqflags=0" - if cores == "Default": + if type(cores) == list: + core_list = cores + elif cores == "Default": core_list = self.dut.get_core_list(self.default_cores) else: core_list = self.dut.get_core_list(cores, socket) |