framework crb: fix incorrect core list on ppc64

Message ID 20220311190326.567197-1-thinhtr@linux.vnet.ibm.com (mailing list archive)
State Accepted
Headers
Series framework crb: fix incorrect core list on ppc64 |

Commit Message

Thinh Tran March 11, 2022, 7:03 p.m. UTC
  Add the checking for DUT arch ppc64 to get the core list correctly.


Signed-off-by: Thinh Tran <thinhtr@linux.vnet.ibm.com>
---
 framework/crb.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Tu, Lijuan March 15, 2022, 2:47 a.m. UTC | #1
> -----Original Message-----
> From: Thinh Tran <thinhtr@linux.vnet.ibm.com>
> Sent: 2022年3月12日 3:03
> To: dts@dpdk.org
> Cc: Thinh Tran <thinhtr@linux.vnet.ibm.com>
> Subject: [DTS] [PATCH] framework crb: fix incorrect core list on ppc64
> 
> Add the checking for DUT arch ppc64 to get the core list correctly.
> 
> 
> Signed-off-by: Thinh Tran <thinhtr@linux.vnet.ibm.com>

Applied, thanks
  

Patch

diff --git a/framework/crb.py b/framework/crb.py
index c9909add..7db9e2b7 100755
--- a/framework/crb.py
+++ b/framework/crb.py
@@ -676,7 +676,7 @@  class Crb(object):
             if self.crb['bypass core0'] and core == '0' and socket == '0':
                 self.logger.info("Core0 bypassed")
                 continue
-            if self.crb.get('dut arch') == "arm64":
+            if self.crb.get('dut arch') == "arm64" or self.crb.get('dut arch') == "ppc64" :
                 self.cores.append(
                         {'thread': thread, 'socket': node, 'core': coremap[core]})
             else: