test suite reviews and discussions
 help / color / mirror / Atom feed
From: Yong Liu <yong.liu@intel.com>
To: dts@dpdk.org
Subject: [dts] [PATCH 4/5] Support start testpmd with assigned core list
Date: Thu, 16 Jul 2015 21:54:47 +0800	[thread overview]
Message-ID: <1437054888-27021-5-git-send-email-yong.liu@intel.com> (raw)
In-Reply-To: <1437054888-27021-1-git-send-email-yong.liu@intel.com>

From: Marvin Liu <yong.liu@intel.com>

Signed-off-by: Marvin Liu <yong.liu@intel.com>

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)
-- 
1.9.3

  parent reply	other threads:[~2015-07-16 13:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-16 13:54 [dts] [PATCH 0/5] support virutal scenario that host drived by dpdk Yong Liu
2015-07-16 13:54 ` [dts] [PATCH 1/5] Support virtualization scenario that use dpdk as host PF driver Yong Liu
2015-07-16 13:54 ` [dts] [PATCH 2/5] Add dpdk host virtualization scenario configuration file Yong Liu
2015-07-16 13:54 ` [dts] [PATCH 3/5] Add new exception type for dpdk host environment failure Yong Liu
2015-07-16 13:54 ` Yong Liu [this message]
2015-07-16 13:54 ` [dts] [PATCH 5/5] Skip setup host target when virtual scenario module has done it Yong Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1437054888-27021-5-git-send-email-yong.liu@intel.com \
    --to=yong.liu@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).