test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] framework/pktgen_trex: fix issue about other type of core_mask
@ 2020-01-06 18:30 lihong
  2020-01-07  2:00 ` Zhu, WenhuiX
  2020-01-07  2:11 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: lihong @ 2020-01-06 18:30 UTC (permalink / raw)
  To: dts; +Cc: lihong

Signed-off-by: lihong <lihongx.ma@intel.com>
---
 framework/pktgen_trex.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/framework/pktgen_trex.py b/framework/pktgen_trex.py
index 705d8f5..61c8c0c 100644
--- a/framework/pktgen_trex.py
+++ b/framework/pktgen_trex.py
@@ -794,7 +794,9 @@ class TrexPacketGenerator(PacketGenerator):
             # clear the stats before injecting
             self._conn.clear_stats()
             # 'core_mask' list must be the same length as 'ports' list
-            core_mask = self.core_mask[:len(self._traffic_ports)]
+            core_mask = self.core_mask
+            if type(self.core_mask) == list:
+                core_mask = self.core_mask[:len(self._traffic_ports)]
             # Start traffic on port(s)
             run_opt = {
                 'ports':    self._traffic_ports,
-- 
2.7.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] framework/pktgen_trex: fix issue about other type of core_mask
  2020-01-06 18:30 [dts] [PATCH V1] framework/pktgen_trex: fix issue about other type of core_mask lihong
@ 2020-01-07  2:00 ` Zhu, WenhuiX
  2020-01-07  2:11 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Zhu, WenhuiX @ 2020-01-07  2:00 UTC (permalink / raw)
  To: Ma, LihongX, dts; +Cc: Ma, LihongX

[-- Attachment #1: Type: text/plain, Size: 1213 bytes --]

Tested-by: Zhu, WenhuiX <wenhuix.zhu@intel.com>

-----Original Message-----
From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong
Sent: Tuesday, January 7, 2020 2:30 AM
To: dts@dpdk.org
Cc: Ma, LihongX <lihongx.ma@intel.com>
Subject: [dts] [PATCH V1] framework/pktgen_trex: fix issue about other type of core_mask

Signed-off-by: lihong <lihongx.ma@intel.com>
---
 framework/pktgen_trex.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/framework/pktgen_trex.py b/framework/pktgen_trex.py index 705d8f5..61c8c0c 100644
--- a/framework/pktgen_trex.py
+++ b/framework/pktgen_trex.py
@@ -794,7 +794,9 @@ class TrexPacketGenerator(PacketGenerator):
             # clear the stats before injecting
             self._conn.clear_stats()
             # 'core_mask' list must be the same length as 'ports' list
-            core_mask = self.core_mask[:len(self._traffic_ports)]
+            core_mask = self.core_mask
+            if type(self.core_mask) == list:
+                core_mask = self.core_mask[:len(self._traffic_ports)]
             # Start traffic on port(s)
             run_opt = {
                 'ports':    self._traffic_ports,
--
2.7.4


[-- Attachment #2: TestPVPVirtIOBonding.log --]
[-- Type: application/octet-stream, Size: 154257 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] framework/pktgen_trex: fix issue about other type of core_mask
  2020-01-06 18:30 [dts] [PATCH V1] framework/pktgen_trex: fix issue about other type of core_mask lihong
  2020-01-07  2:00 ` Zhu, WenhuiX
@ 2020-01-07  2:11 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-01-07  2:11 UTC (permalink / raw)
  To: Ma, LihongX, dts; +Cc: Ma, LihongX

Applied

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong
> Sent: Tuesday, January 7, 2020 2:30 AM
> To: dts@dpdk.org
> Cc: Ma, LihongX <lihongx.ma@intel.com>
> Subject: [dts] [PATCH V1] framework/pktgen_trex: fix issue about other type
> of core_mask
> 
> Signed-off-by: lihong <lihongx.ma@intel.com>
> ---
>  framework/pktgen_trex.py | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/framework/pktgen_trex.py b/framework/pktgen_trex.py index
> 705d8f5..61c8c0c 100644
> --- a/framework/pktgen_trex.py
> +++ b/framework/pktgen_trex.py
> @@ -794,7 +794,9 @@ class TrexPacketGenerator(PacketGenerator):
>              # clear the stats before injecting
>              self._conn.clear_stats()
>              # 'core_mask' list must be the same length as 'ports' list
> -            core_mask = self.core_mask[:len(self._traffic_ports)]
> +            core_mask = self.core_mask
> +            if type(self.core_mask) == list:
> +                core_mask = self.core_mask[:len(self._traffic_ports)]
>              # Start traffic on port(s)
>              run_opt = {
>                  'ports':    self._traffic_ports,
> --
> 2.7.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-07  2:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-06 18:30 [dts] [PATCH V1] framework/pktgen_trex: fix issue about other type of core_mask lihong
2020-01-07  2:00 ` Zhu, WenhuiX
2020-01-07  2:11 ` Tu, Lijuan

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